summaryrefslogtreecommitdiff
path: root/test/pending/neg
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/neg')
-rw-r--r--test/pending/neg/t1038.check4
-rw-r--r--test/pending/neg/t1038.scala7
2 files changed, 11 insertions, 0 deletions
diff --git a/test/pending/neg/t1038.check b/test/pending/neg/t1038.check
new file mode 100644
index 0000000000..3bfd479f42
--- /dev/null
+++ b/test/pending/neg/t1038.check
@@ -0,0 +1,4 @@
+t1038.scala:4: error: wrong number of arguments for constructor X: (Int)X
+ val a = new X
+ ^
+one error found
diff --git a/test/pending/neg/t1038.scala b/test/pending/neg/t1038.scala
new file mode 100644
index 0000000000..7157aafa06
--- /dev/null
+++ b/test/pending/neg/t1038.scala
@@ -0,0 +1,7 @@
+class X(x : Int)
+
+object Y {
+ val a = new X
+ import a._
+ implicit val b : Int = 1
+}