summaryrefslogtreecommitdiff
path: root/test/files/neg/t2796.check
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.check
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.check')
-rw-r--r--test/files/neg/t2796.check5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/t2796.check b/test/files/neg/t2796.check
index 4456a7fc19..22ee35a7e6 100644
--- a/test/files/neg/t2796.check
+++ b/test/files/neg/t2796.check
@@ -1,6 +1,9 @@
+t2796.scala:11: warning: early type members are deprecated. Move them to the regular body: the semantics are the same.
+ type X = Int // warn
+ ^
t2796.scala:7: warning: Implementation restriction: early definitions in traits are not initialized before the super class is initialized.
val abstractVal = "T1.abstractVal" // warn
^
error: No warnings can be incurred under -Xfatal-warnings.
-one warning found
+two warnings found
one error found