Not-in-scope variables are always errors
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 17 Aug 2016 11:04:30 +0000 (12:04 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 17 Aug 2016 13:38:52 +0000 (14:38 +0100)
commitefc0372a157eadeee58bbada77c64d53590e04af
tree18c7ffbe06be62f3ef67677ee48b166c980b4484
parent34da8e5127d2c65ca219162ae5cd122dd9af5e25
Not-in-scope variables are always errors

This fixes Trac #12406.  A not-in-scope error shoudl be an error
even if you have -fdefer-typed-holes.
compiler/typecheck/TcErrors.hs
testsuite/tests/partial-sigs/should_compile/T12156.stderr
testsuite/tests/partial-sigs/should_compile/all.T
testsuite/tests/typecheck/should_fail/T12406.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12406.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T