aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/matthias1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/matthias1.scala')
-rw-r--r--tests/untried/pos/matthias1.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/pos/matthias1.scala b/tests/untried/pos/matthias1.scala
new file mode 100644
index 000000000..a923a529f
--- /dev/null
+++ b/tests/untried/pos/matthias1.scala
@@ -0,0 +1,15 @@
+class A() {
+ class B() {
+ def foo(x: B) = 0
+ }
+}
+object test {
+ def main = {
+ val a = new A();
+ val b = new a.B();
+ val c = new a.B();
+ val d = b.foo(c);
+ ()
+ }
+}
+