diff options
author | Paul Phillips <paulp@improving.org> | 2012-08-06 14:05:24 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-08-06 15:03:22 -0700 |
commit | fd3601a833baac6258d28687d1a73979f4369826 (patch) | |
tree | 3bd5dc91d21382f7a97c1c8641c324bcd4ce36c2 /test/files/run/lazy-traits.scala | |
parent | 963aabbeb45e042f4b0d6f5ec13edb0136cbf441 (diff) | |
download | scala-fd3601a833baac6258d28687d1a73979f4369826.tar.gz scala-fd3601a833baac6258d28687d1a73979f4369826.tar.bz2 scala-fd3601a833baac6258d28687d1a73979f4369826.zip |
Restored :warnings to working order.
As seen here.
scala> class A { @deprecated("foo") def a = 1 }
warning: there were 1 deprecation warnings; re-run with -deprecation for details
defined class A
scala> :warnings
<console>:7: warning: @deprecated now takes two arguments; see the scaladoc.
class A { @deprecated("foo") def a = 1 }
^
scala> val x = 5 toString
warning: there were 1 feature warnings; re-run with -feature for details
x: String = 5
scala> :warnings
<console>:7: warning: postfix operator toString should be enabled
by making the implicit value language.postfixOps visible.
This can be achieved by adding the import clause 'import language.postfixOps'
or by setting the compiler option -language:postfixOps.
See the Scala docs for value scala.language.postfixOps for a discussion
why the feature should be explicitly enabled.
val x = 5 toString
^
Diffstat (limited to 'test/files/run/lazy-traits.scala')
0 files changed, 0 insertions, 0 deletions