aboutsummaryrefslogtreecommitdiff
path: root/tests/new
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-03 13:31:27 +0200
committerMartin Odersky <odersky@gmail.com>2014-05-12 12:50:38 +0200
commit1b32071acef5c7c2c08e21ee577c7cc709876ffa (patch)
tree6cf36469ca3a59b855a3c589b4542c19d3b30fb8 /tests/new
parent8a4186ff782efefb98686aa35bf7f5dd1418210d (diff)
downloaddotty-1b32071acef5c7c2c08e21ee577c7cc709876ffa.tar.gz
dotty-1b32071acef5c7c2c08e21ee577c7cc709876ffa.tar.bz2
dotty-1b32071acef5c7c2c08e21ee577c7cc709876ffa.zip
More tests
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/t160.scala3
-rw-r--r--tests/new/t1642b.scala6
-rw-r--r--tests/new/t1659.scala4
-rw-r--r--tests/new/t1675.scala11
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/new/t160.scala b/tests/new/t160.scala
new file mode 100644
index 000000000..91ac2ba84
--- /dev/null
+++ b/tests/new/t160.scala
@@ -0,0 +1,3 @@
+class Foo(s:String) {
+ def this() = { this("DEFAULT") }
+}
diff --git a/tests/new/t1642b.scala b/tests/new/t1642b.scala
new file mode 100644
index 000000000..72e53b0c9
--- /dev/null
+++ b/tests/new/t1642b.scala
@@ -0,0 +1,6 @@
+package x
+abstract class H[A] {
+ type P <: R[P]
+ def a: P
+}
+class R[F]
diff --git a/tests/new/t1659.scala b/tests/new/t1659.scala
new file mode 100644
index 000000000..10470d66f
--- /dev/null
+++ b/tests/new/t1659.scala
@@ -0,0 +1,4 @@
+trait Y { type X }
+trait W { def u[A](v : Y { type X = A }) : Unit }
+class Z extends W { def u[A](v : Y { type X = A }) = null }
+
diff --git a/tests/new/t1675.scala b/tests/new/t1675.scala
new file mode 100644
index 000000000..8630890ee
--- /dev/null
+++ b/tests/new/t1675.scala
@@ -0,0 +1,11 @@
+package a
+object Foo extends pack.Bar {
+ for(i <- 0 to 10) {
+ test("")
+ }
+}
+package pack {
+ class Bar {
+ protected def test(s: String*): Unit = {}
+ }
+}