summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T17021.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T17021.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/T17021.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T17021.stderr b/testsuite/tests/typecheck/should_fail/T17021.stderr
new file mode 100644
index 0000000000..712858b19f
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T17021.stderr
@@ -0,0 +1,14 @@
+
+T17021.hs:18:5: error:
+ Cannot use function with levity-polymorphic arguments:
+ T17021.MkT :: Int -> T
+ (Note that levity-polymorphic primops such as 'coerce' and unboxed tuples
+ are eta-expanded internally because they must occur fully saturated.
+ Use -fprint-typechecker-elaboration to display the full expression.)
+ Levity-polymorphic arguments: Int :: TYPE (Id 'LiftedRep)
+
+T17021.hs:18:9: error:
+ A levity-polymorphic type is not allowed here:
+ Type: Int
+ Kind: TYPE (Id 'LiftedRep)
+ In the type of expression: 42