diff options
Diffstat (limited to 'test-nsc/files/pos/test4a.scala')
-rwxr-xr-x | test-nsc/files/pos/test4a.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test-nsc/files/pos/test4a.scala b/test-nsc/files/pos/test4a.scala new file mode 100755 index 0000000000..ada0ba4e5f --- /dev/null +++ b/test-nsc/files/pos/test4a.scala @@ -0,0 +1,16 @@ +trait C {} + +class O[X]() { + trait I[Y] { + def foo(y: Y): Y = y; + } + val j:I[X] = null; +} + +object o extends O[C]() { + def c: C = c; + def main = { + o.j.foo(c); + } +} + |