summaryrefslogtreecommitdiff
path: root/test/files/neg/t935.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t935.check')
-rw-r--r--test/files/neg/t935.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t935.check b/test/files/neg/t935.check
new file mode 100644
index 0000000000..af634a2630
--- /dev/null
+++ b/test/files/neg/t935.check
@@ -0,0 +1,7 @@
+t935.scala:7: error: type arguments [Test3.B] do not conform to class E's type parameter bounds [T <: String]
+ @E[B](new B) val b = "hi"
+ ^
+t935.scala:13: error: type arguments [Test4.B] do not conform to class E's type parameter bounds [T <: String]
+ val b: String @E[B](new B) = "hi"
+ ^
+two errors found