diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-15 14:27:22 -0400 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-15 21:19:20 -0400 |
commit | aade111248dce0834ed83dc4f18c234967b32024 (patch) | |
tree | 6067058be2f2d181d85b6eab2574438f31998559 /testsuite/tests/dependent/should_fail/T11473.stderr | |
parent | 1eefedf7371778d1721d9af9247c2eff12ae7417 (diff) | |
download | haskell-aade111248dce0834ed83dc4f18c234967b32024.tar.gz |
Fix #11473.
I've added a check in the zonker for representation polymorphism.
I don't like having this be in the zonker, but I don't know where
else to put it. It can't go in TcValidity, because a clever enough
user could convince the solver to do bogus representation polymorphism
even though there's nothing obviously wrong in what they wrote.
Note that TcValidity doesn't run over *expressions*, which is where
this problem arises.
In any case, the check is simple and it works.
test case: dependent/should_fail/T11473
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T11473.stderr')
-rw-r--r-- | testsuite/tests/dependent/should_fail/T11473.stderr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T11473.stderr b/testsuite/tests/dependent/should_fail/T11473.stderr new file mode 100644 index 0000000000..7a7cc32871 --- /dev/null +++ b/testsuite/tests/dependent/should_fail/T11473.stderr @@ -0,0 +1,7 @@ + +T11473.hs:19:7: error: + The following variable has an unknown runtime representation: + Var name: x + Var type: a + Type's kind: TYPE r + Perhaps add a type or kind signature to fix the representation. |