summaryrefslogtreecommitdiff
path: root/test/files/run/constrained-types.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-05 01:48:11 +0000
committerPaul Phillips <paulp@improving.org>2011-04-05 01:48:11 +0000
commite06244cb55797d9928a52a22a548d547555be733 (patch)
tree805803afd8a0ac9d646383a8f738ed72e2f61602 /test/files/run/constrained-types.scala
parent23c937f3454fc46c8a95f4c5c332740c4c54e992 (diff)
downloadscala-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/constrained-types.scala')
0 files changed, 0 insertions, 0 deletions