aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/higherkind_novalue.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/higherkind_novalue.scala')
-rw-r--r--tests/untried/neg/higherkind_novalue.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/neg/higherkind_novalue.scala b/tests/untried/neg/higherkind_novalue.scala
new file mode 100644
index 000000000..9c1480c3b
--- /dev/null
+++ b/tests/untried/neg/higherkind_novalue.scala
@@ -0,0 +1,4 @@
+abstract class HigherKind[m[s]] {
+ val x: m // type of kind *->* doesn't classify a value, but a val/def/... can only contain/return a value
+ def y: m
+}