summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/matthias1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/matthias1.scala')
-rwxr-xr-xtest-nsc/files/pos/matthias1.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-nsc/files/pos/matthias1.scala b/test-nsc/files/pos/matthias1.scala
new file mode 100755
index 0000000000..a923a529fe
--- /dev/null
+++ b/test-nsc/files/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);
+ ()
+ }
+}
+