diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/i941.scala | 2 | ||||
-rw-r--r-- | tests/neg/instantiateAbstract.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/i941.scala b/tests/neg/i941.scala index 2643c2546..fc29cc27d 100644 --- a/tests/neg/i941.scala +++ b/tests/neg/i941.scala @@ -1,7 +1,7 @@ object Test { def bar(tl: => String) = { - val x = tl _ //error + val x = tl _ // error val y = x _ // error val s: String = x() // error } diff --git a/tests/neg/instantiateAbstract.scala b/tests/neg/instantiateAbstract.scala index 10eeac64d..a2ff38ef4 100644 --- a/tests/neg/instantiateAbstract.scala +++ b/tests/neg/instantiateAbstract.scala @@ -15,7 +15,7 @@ object Test { @scala.annotation.Annotation type T = String // error @scala.annotation.Annotation val x = 1 // error - @scala.annotation.Annotation def f = 1 //error + @scala.annotation.Annotation def f = 1 // error (1: @scala.annotation.Annotation) // error |