summaryrefslogtreecommitdiff
path: root/test/files/run/t4680.check
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-02-19 20:45:45 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-02-19 20:45:47 -0800
commit07e0e2f92f9208c0b582d7cfd355d7574217cc23 (patch)
tree33623ce875e519ed5d48f9fb7633f17b754410a9 /test/files/run/t4680.check
parent2ead4d6aa3de402f269252190aaa9075a990e098 (diff)
downloadscala-07e0e2f92f9208c0b582d7cfd355d7574217cc23.tar.gz
scala-07e0e2f92f9208c0b582d7cfd355d7574217cc23.tar.bz2
scala-07e0e2f92f9208c0b582d7cfd355d7574217cc23.zip
SI-5479 deprecate DelayedInit outside of App
DelayedInit's semantics are way too surprising. For example, it delays initialization of fields, so that fields on objects that extend `App` (which `extends DelayedInit`) are not initialized until the `main` method is called. For more details and a proposed alternative, see https://issues.scala-lang.org/browse/SI-4330?jql=labels%20%3D%20delayedinit%20AND%20resolution%20%3D%20unresolved. Support for `App` will continue -- we'll special case it.
Diffstat (limited to 'test/files/run/t4680.check')
-rw-r--r--test/files/run/t4680.check1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/run/t4680.check b/test/files/run/t4680.check
index b2e5209dc5..512bfd4b54 100644
--- a/test/files/run/t4680.check
+++ b/test/files/run/t4680.check
@@ -4,6 +4,7 @@ t4680.scala:51: warning: a pure expression does nothing in statement position; y
t4680.scala:69: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
new { val x = 5 } with E() { 5 }
^
+warning: there were 1 deprecation warning(s); re-run with -deprecation for details
// new C { }