summaryrefslogtreecommitdiff
path: root/test/pending/pos/t3943/test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/t3943/test_2.scala')
-rw-r--r--test/pending/pos/t3943/test_2.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pending/pos/t3943/test_2.scala b/test/pending/pos/t3943/test_2.scala
new file mode 100644
index 0000000000..a19db8b226
--- /dev/null
+++ b/test/pending/pos/t3943/test_2.scala
@@ -0,0 +1,8 @@
+object Test extends App {
+ val x: Child = new Child
+ x.getInner.foo("meh")
+// ^
+// error: type mismatch;
+// found : java.lang.String("meh")
+// required: E
+}