diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-19 16:55:50 -0400 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-21 12:16:12 -0400 |
commit | 35e937973f61a7e5534ecd0b1c67111cd82d4238 (patch) | |
tree | 515dd4f04763c179dad1ae1ed29ed4e5b3459bc8 /testsuite/tests/rename/should_fail/rnfail055.stderr | |
parent | 947709395015bd6122eedc6da5df356660e76208 (diff) | |
download | haskell-35e937973f61a7e5534ecd0b1c67111cd82d4238.tar.gz |
Track specified/invisible more carefully.
In particular, this allows correct tracking of specified/invisible
for variables in Haskell98 data constructors and in pattern synonyms.
GADT-syntax constructors are harder, and are left until #11721.
This was all inspired by Simon's comments to my fix for #11512,
which this subsumes.
Test case: ghci/scripts/TypeAppData
[skip ci] (The test case fails because of an unrelated problem
fixed in the next commit.)
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail055.stderr')
-rw-r--r-- | testsuite/tests/rename/should_fail/rnfail055.stderr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail055.stderr b/testsuite/tests/rename/should_fail/rnfail055.stderr index d87054e926..e7e6a3a817 100644 --- a/testsuite/tests/rename/should_fail/rnfail055.stderr +++ b/testsuite/tests/rename/should_fail/rnfail055.stderr @@ -73,7 +73,8 @@ RnFail055.hs-boot:25:1: error: Main module: type role T7 phantom data T7 a where T7 :: a1 -> T7 a - Boot file: data T7 a = T7 a + Boot file: data T7 a where + T7 :: a -> T7 a The roles do not match. Roles on abstract types default to ‘representational’ in boot files. The constructors do not match: The types for ‘T7’ differ |