diff options
Diffstat (limited to 'test/files/neg/t935.scala')
-rw-r--r-- | test/files/neg/t935.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/neg/t935.scala b/test/files/neg/t935.scala new file mode 100644 index 0000000000..299062adb8 --- /dev/null +++ b/test/files/neg/t935.scala @@ -0,0 +1,14 @@ +import annotation.Annotation + +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" +} + +object Test4 { + class E[T <: String](s: T) extends Annotation + class B + val b: String @E[B](new B) = "hi" +} |