summaryrefslogtreecommitdiff
path: root/test/pending/pos/t3943/test_2.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-11 10:00:14 -0700
committerPaul Phillips <paulp@improving.org>2012-09-12 20:47:39 -0700
commit1806830ec802feea0b89f1a71e0dc15c1507b965 (patch)
tree1dc0e3045ec0639f97e20b377f0c68ef1fdd5f0f /test/pending/pos/t3943/test_2.scala
parent7a44282d130937e0f6f6c8d19bea08f466a0d2e9 (diff)
downloadscala-1806830ec802feea0b89f1a71e0dc15c1507b965.tar.gz
scala-1806830ec802feea0b89f1a71e0dc15c1507b965.tar.bz2
scala-1806830ec802feea0b89f1a71e0dc15c1507b965.zip
Pending test for SI-3943
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
+}