summaryrefslogtreecommitdiff
path: root/test/files/pos/nested.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2005-10-03 13:42:39 +0000
committerMartin Odersky <odersky@gmail.com>2005-10-03 13:42:39 +0000
commit2994973970bcba6ff90d7788e79f2042cc11deaf (patch)
treeb90fbfc9d5b12b01f2815edabb2f0eeb17655a94 /test/files/pos/nested.scala
parent159a3633b593bf2b0a10f4f4e218489b2bba03bc (diff)
downloadscala-2994973970bcba6ff90d7788e79f2042cc11deaf.tar.gz
scala-2994973970bcba6ff90d7788e79f2042cc11deaf.tar.bz2
scala-2994973970bcba6ff90d7788e79f2042cc11deaf.zip
*** empty log message ***
Diffstat (limited to 'test/files/pos/nested.scala')
-rw-r--r--test/files/pos/nested.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/pos/nested.scala b/test/files/pos/nested.scala
index e81b710d72..b038fce39d 100644
--- a/test/files/pos/nested.scala
+++ b/test/files/pos/nested.scala
@@ -12,11 +12,13 @@ class A(pa : Int) {
}
}
-class M(x : Int) {
+trait M {
+ val x : Int;
def m1 = x
}
-class A1(x : Int) extends A(x) with M(x) {
+class A1(x0 : Int) extends A(x0) with M {
+ val x = x0;
class D() extends B(42) {
val c2 = new C(66);
class E() extends C(5) {