summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/neg/bug630.scala23
-rw-r--r--test/files/neg/bug631.scala3
-rw-r--r--test/files/run/bug627.check1
-rwxr-xr-xtest/files/run/bug627.scala6
4 files changed, 33 insertions, 0 deletions
diff --git a/test/files/neg/bug630.scala b/test/files/neg/bug630.scala
new file mode 100644
index 0000000000..d236b51ffd
--- /dev/null
+++ b/test/files/neg/bug630.scala
@@ -0,0 +1,23 @@
+trait Req1
+
+trait Req2 {
+ def test = Console.println("Test")
+}
+
+trait Foo {
+ val foo : Req1
+}
+
+trait Bar {
+ val foo : Req2
+ def test = foo.test
+}
+
+object Test
+ extends Foo
+ with Bar
+{
+ object foo extends Req1
+
+ def main(argv : Array[String]) = test
+}
diff --git a/test/files/neg/bug631.scala b/test/files/neg/bug631.scala
new file mode 100644
index 0000000000..631db3eb10
--- /dev/null
+++ b/test/files/neg/bug631.scala
@@ -0,0 +1,3 @@
+implicit object Test {
+ Console.println("foo")
+}
diff --git a/test/files/run/bug627.check b/test/files/run/bug627.check
new file mode 100644
index 0000000000..fd4128e421
--- /dev/null
+++ b/test/files/run/bug627.check
@@ -0,0 +1 @@
+Array(1,2,3,4)
diff --git a/test/files/run/bug627.scala b/test/files/run/bug627.scala
new file mode 100755
index 0000000000..1b040db0c5
--- /dev/null
+++ b/test/files/run/bug627.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]): unit = {
+ val s: Seq[int] = Array(1, 2, 3, 4)
+ Console.println(s)
+ }
+}