aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1050c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1050c.scala')
-rw-r--r--tests/neg/i1050c.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/neg/i1050c.scala b/tests/neg/i1050c.scala
index 19570eb83..ecfaa3ea3 100644
--- a/tests/neg/i1050c.scala
+++ b/tests/neg/i1050c.scala
@@ -27,7 +27,8 @@ object Tiark4 {
v.brand("boom!")
}
object V { // error: cannot be instantiated
- type Y >: Any <: Nothing // error: only classes can have declared but undefined members
+ type Y >: Any <: Nothing // old-error: only classes can have declared but undefined members
+ type Z
}
object Tiark5 {
trait A { type L <: Nothing }