summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T8639.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/T8639.script')
-rw-r--r--testsuite/tests/ghci/scripts/T8639.script19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T8639.script b/testsuite/tests/ghci/scripts/T8639.script
new file mode 100644
index 0000000000..a7db1727a5
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T8639.script
@@ -0,0 +1,19 @@
+:l T8639.hs
+:t it
+bit
+:t it
+ -- Gets the last thing evaluated (T8639.bit)
+:t T8639.it
+ -- Gets 'it' from T8639
+
+:m -T8639
+import T8639 as Q
+
+:t bit
+:t Q.bit
+:t H.bit
+ -- Should say "out of scope"
+:t it
+ -- Gets the last thing evaluated (T8639.bit)
+:t Q.it
+ -- Gets 'it' from T8639