Commit f54fc09b authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Test Trac #8639 (just the GHCi version)

parent 22770b4d
module T8639 where
it = True
bit = 'c'
: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
<interactive>:1:1:
Not in scope: ‛H.bit’
Perhaps you meant ‛Q.bit’ (imported from T8639)
......@@ -160,3 +160,4 @@ test('T8383', normal, ghci_script, ['T8383.script'])
test('T8469', normal, ghci_script, ['T8469.script'])
test('T8485', normal, ghci_script, ['T8485.script'])
test('T8535', normal, ghci_script, ['T8535.script'])
test('T8639', normal, ghci_script, ['T8639.script'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment