diff options
Diffstat (limited to 'test/files/run/records.scala')
-rw-r--r-- | test/files/run/records.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/run/records.scala b/test/files/run/records.scala index 96b0b4cb0f..f2b582b950 100644 --- a/test/files/run/records.scala +++ b/test/files/run/records.scala @@ -1,3 +1,6 @@ + +import scala.language.{ reflectiveCalls } + trait C { def f: Int } @@ -16,10 +19,10 @@ object Test { val y = new C { def f = 2 def g = " world" - } - + } + val z: T = y - + def main(args: Array[String]): Unit = { assert(x.f+z.f == 3) assert(x.g+z.g == "hello world") |