summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorpradel <pradel@epfl.ch>2008-06-17 09:32:02 +0000
committerpradel <pradel@epfl.ch>2008-06-17 09:32:02 +0000
commitd576a53cd2bddc7fc9724d9645d810622d54d3e4 (patch)
tree97850e04f723b8793e7f46961927a4bd933748a2 /test
parentf8d38356f5ff225cfe0c3072398f9a3509ae7601 (diff)
downloadscala-d576a53cd2bddc7fc9724d9645d810622d54d3e4.tar.gz
scala-d576a53cd2bddc7fc9724d9645d810622d54d3e4.tar.bz2
scala-d576a53cd2bddc7fc9724d9645d810622d54d3e4.zip
added tests for #1035 and #1038 to pending
Diffstat (limited to 'test')
-rw-r--r--test/pending/neg/t1038.check4
-rw-r--r--test/pending/neg/t1038.scala7
-rw-r--r--test/pending/pos/t1038.scala7
3 files changed, 18 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
+}
diff --git a/test/pending/pos/t1038.scala b/test/pending/pos/t1038.scala
new file mode 100644
index 0000000000..7157aafa06
--- /dev/null
+++ b/test/pending/pos/t1038.scala
@@ -0,0 +1,7 @@
+class X(x : Int)
+
+object Y {
+ val a = new X
+ import a._
+ implicit val b : Int = 1
+}