diff options
-rw-r--r-- | test/pending/neg/t1038.check | 4 | ||||
-rw-r--r-- | test/pending/neg/t1038.scala | 7 | ||||
-rw-r--r-- | test/pending/pos/t1038.scala | 7 |
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 +} |