diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug935.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug935.scala | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/bug935.check b/test/files/neg/bug935.check new file mode 100644 index 0000000000..e2c2b87be8 --- /dev/null +++ b/test/files/neg/bug935.check @@ -0,0 +1,4 @@ +bug935.scala:5: error: type arguments [Test3.B] do not conform to class E's type parameter bounds [T <: String] + @E[B](new B) val b = "hi" + ^ +one error found diff --git a/test/files/neg/bug935.scala b/test/files/neg/bug935.scala new file mode 100644 index 0000000000..4497e0812e --- /dev/null +++ b/test/files/neg/bug935.scala @@ -0,0 +1,6 @@ +object Test3 { + class E[T >: Nothing <: String](s: T) extends Annotation + class B + // val a = new E[B](new B) + @E[B](new B) val b = "hi" +}
\ No newline at end of file |