diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-31 14:03:26 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:05 +0100 |
commit | 9a6f82b2ecfd7462d0a1f4e0464878fd58231277 (patch) | |
tree | 8e9e46b08d7fdf45f4b1fd06b30d7e35c43f05b1 /tests/pos-special | |
parent | 44c14b3fb6e5eb6f2b9734f092eef1d85f6b4d18 (diff) | |
download | dotty-9a6f82b2ecfd7462d0a1f4e0464878fd58231277.tar.gz dotty-9a6f82b2ecfd7462d0a1f4e0464878fd58231277.tar.bz2 dotty-9a6f82b2ecfd7462d0a1f4e0464878fd58231277.zip |
Reorganize tests to account for new typing of projection
Tests with failed projections are moved to pos-scala2, which
was renamed from pos-special. Files in pos-scala2 are compiled
with -language:Scala2 option.
Diffstat (limited to 'tests/pos-special')
-rw-r--r-- | tests/pos-special/i871.flags | 1 | ||||
-rw-r--r-- | tests/pos-special/i871.scala | 4 | ||||
-rw-r--r-- | tests/pos-special/variances-constr.scala | 27 |
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/pos-special/i871.flags b/tests/pos-special/i871.flags deleted file mode 100644 index a5c112f5a..000000000 --- a/tests/pos-special/i871.flags +++ /dev/null @@ -1 +0,0 @@ --language:Scala2
\ No newline at end of file diff --git a/tests/pos-special/i871.scala b/tests/pos-special/i871.scala deleted file mode 100644 index 2e5f100d8..000000000 --- a/tests/pos-special/i871.scala +++ /dev/null @@ -1,4 +0,0 @@ -trait Message { - def first(x: Int) - def second -} diff --git a/tests/pos-special/variances-constr.scala b/tests/pos-special/variances-constr.scala deleted file mode 100644 index ee4219b10..000000000 --- a/tests/pos-special/variances-constr.scala +++ /dev/null @@ -1,27 +0,0 @@ -class C[+A] { - - private[this] var y: A = _ - def getY: A = y - - class Inner(x: A) { - y = x - } -} - -object Test { - - def main(args: Array[String]) = { - val x = new C[String] - val y: C[Any] = x - val i = new y.Inner(1) - val s: String = x.getY - println(s) - } -} - -class CC[+A] { - class Inner { - def this(a: A) = this() - } -} - |