Always do polymorphic typed quote check, c.f. #10384
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Tue, 5 May 2015 17:53:00 +0000 (10:53 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Sat, 9 May 2015 08:26:06 +0000 (01:26 -0700)
commit9a43b2c1f78b3cf684646af64b9b67dc8079f58f
treeed751564c89577c2733a1055a979381cf407ead9
parenteb0ed4030374af542c0a459480d32c8d4525e48d
Always do polymorphic typed quote check, c.f. #10384

Summary:
Since quotes are enabled in stage1, we need to do the
staging check.  This also "fixes" #10384 by adding
a test for the polymorphic local variable test.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin

Subscribers: bgamari, thomie

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

GHC Trac Issues: #10384
compiler/typecheck/TcExpr.hs
testsuite/tests/quotes/T10384.hs [new file with mode: 0644]
testsuite/tests/quotes/T10384.stderr [new file with mode: 0644]
testsuite/tests/quotes/all.T