summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/Z.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/Z.scala')
-rwxr-xr-xtest-nsc/files/pos/Z.scala10
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();
+
+}