aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/higherkind_novalue.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/higherkind_novalue.check')
-rw-r--r--tests/untried/neg/higherkind_novalue.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/higherkind_novalue.check b/tests/untried/neg/higherkind_novalue.check
new file mode 100644
index 000000000..932f7876b
--- /dev/null
+++ b/tests/untried/neg/higherkind_novalue.check
@@ -0,0 +1,7 @@
+higherkind_novalue.scala:2: error: type m takes type parameters
+ val x: m // type of kind *->* doesn't classify a value, but a val/def/... can only contain/return a value
+ ^
+higherkind_novalue.scala:3: error: type m takes type parameters
+ def y: m
+ ^
+two errors found