Omit the static form error for variables not in scope.
authorFacundo Domínguez <facundo.dominguez@tweag.io>
Tue, 26 May 2015 02:08:05 +0000 (21:08 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 26 May 2015 02:08:05 +0000 (21:08 -0500)
commit71d1f01db94dda5b8c2c367fba8cc7b115b06e95
treecf1cebe33520b9ec725f9fcf54133c859243c826
parent70f1ca431c948be468f7f9a86892fd81c8f1a64b
Omit the static form error for variables not in scope.

Summary:
Fixes T10446.

The following program

> g = static f

now produces only:

> ...: error
>    Not in scope: 'f'

Before it would also produce a complaint about 'f' not being a top-level
identifier.

Test Plan: validate

Reviewers: austin

Reviewed By: austin

Subscribers: bgamari, thomie, mboes

Differential Revision: https://phabricator.haskell.org/D906

GHC Trac Issues: #10446
compiler/rename/RnExpr.hs
testsuite/tests/rename/should_fail/RnStaticPointersFail02.stderr