summaryrefslogtreecommitdiff
path: root/test/files/run/t0091.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-01-30 11:16:10 +0000
committermichelou <michelou@epfl.ch>2008-01-30 11:16:10 +0000
commit1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0 (patch)
tree2296c1cc9d6811399672c5aee688d9ca05183ab0 /test/files/run/t0091.scala
parent345d649bb252f9835a23776db036188bf875283a (diff)
downloadscala-1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0.tar.gz
scala-1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0.tar.bz2
scala-1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0.zip
updated some test files
Diffstat (limited to 'test/files/run/t0091.scala')
-rw-r--r--test/files/run/t0091.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t0091.scala b/test/files/run/t0091.scala
new file mode 100644
index 0000000000..eaddde0dbf
--- /dev/null
+++ b/test/files/run/t0091.scala
@@ -0,0 +1,13 @@
+trait A { def x : Int }
+trait B { val m : A }
+object C extends B {
+ object m extends A { def x = 5 }
+}
+object Test {
+ // The type annotation here is necessary, otherwise
+ // the compiler would reference C$m$ directly.
+ def o : B = C
+ def main(argv : Array[String]) : Unit = {
+ println(o.m.x)
+ }
+}