diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-05 01:48:11 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-05 01:48:11 +0000 |
commit | e06244cb55797d9928a52a22a548d547555be733 (patch) | |
tree | 805803afd8a0ac9d646383a8f738ed72e2f61602 /test/files/run/repl-transcript.check | |
parent | 23c937f3454fc46c8a95f4c5c332740c4c54e992 (diff) | |
download | scala-e06244cb55797d9928a52a22a548d547555be733.tar.gz scala-e06244cb55797d9928a52a22a548d547555be733.tar.bz2 scala-e06244cb55797d9928a52a22a548d547555be733.zip |
Added a long overdue warning for when people de...
Added a long overdue warning for when people define a class and then an
object or vice versa in the repl.
scala> object Bippy { implicit val myImplicitsDontWork = 5 }
defined module Bippy
scala> trait Bippy { val x = "hello" }
defined trait Bippy
warning: previously defined object Bippy is not a companion to trait Bippy.
Companions must be defined together; you may wish to use :paste mode for this.
No review.
Diffstat (limited to 'test/files/run/repl-transcript.check')
0 files changed, 0 insertions, 0 deletions