summaryrefslogtreecommitdiff
path: root/test/files/neg/t2796.scala
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-08-21 12:27:45 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-08-28 13:03:53 +0200
commitb65d67d71c962523cca625a80553571408b2a3e6 (patch)
tree27f31b4d7b1f8fb88aa7ed1fdd8f200bb47341de /test/files/neg/t2796.scala
parenta24fc60deed8fbed062ecd6ff96e434349cca75d (diff)
downloadscala-b65d67d71c962523cca625a80553571408b2a3e6.tar.gz
scala-b65d67d71c962523cca625a80553571408b2a3e6.tar.bz2
scala-b65d67d71c962523cca625a80553571408b2a3e6.zip
deprecate early type defs
This feature is neither properly supported by Scala compiler nor a part of the language spec and therefore should be removed. Due to source compatiblity with 2.10 we need to deprecate it first.
Diffstat (limited to 'test/files/neg/t2796.scala')
-rw-r--r--test/files/neg/t2796.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/neg/t2796.scala b/test/files/neg/t2796.scala
index 3bcc9df562..fa2f2358b9 100644
--- a/test/files/neg/t2796.scala
+++ b/test/files/neg/t2796.scala
@@ -8,10 +8,9 @@ trait T1 extends {
} with Base
trait T2 extends {
- type X = Int // okay
+ type X = Int // warn
} with Base
-
class C1 extends {
val abstractVal = "C1.abstractVal" // okay
} with Base