diff options
Diffstat (limited to 'test/files/pos/test4a.scala')
-rw-r--r-- | test/files/pos/test4a.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/test4a.scala b/test/files/pos/test4a.scala new file mode 100644 index 0000000000..0d653c5012 --- /dev/null +++ b/test/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; +} + +module o extends O[C]() { + def c: C = c; + def main = { + o.j.foo(c); + } +} + |