diff options
Diffstat (limited to 'test-nsc/files/pos/Z.scala')
-rwxr-xr-x | test-nsc/files/pos/Z.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-nsc/files/pos/Z.scala b/test-nsc/files/pos/Z.scala new file mode 100755 index 0000000000..c1367e46b9 --- /dev/null +++ b/test-nsc/files/pos/Z.scala @@ -0,0 +1,10 @@ +trait X { + val elem: Int = 1 +} + +object test { + + def g(x: X) = x.elem; + def f(x: Object) = x.toString(); + +} |