Remove trait-super test from sbt/sbt

This commit is contained in:
Eugene Yokota 2016-05-05 23:59:30 -04:00
parent f2ad99594e
commit ee6af2c06d
6 changed files with 0 additions and 46 deletions

View File

@ -1,6 +0,0 @@
trait A {
def x: Int
}
class E extends A {
def x = 19
}

View File

@ -1,6 +0,0 @@
trait B extends A {
abstract override def x = 1
}
trait C extends A {
abstract override def x = 3
}

View File

@ -1,10 +0,0 @@
class X extends E with C with B
object Main {
def main(args: Array[String]): Unit = {
val x = new X
val expected = args(0).toInt
assert(x.x == expected, "Expected " + expected + ", got " + x.x)
}
}

View File

@ -1,6 +0,0 @@
trait B extends A {
abstract override def x = super.x + 2
}
trait C extends A {
abstract override def x = 3
}

View File

@ -1,6 +0,0 @@
trait B extends A {
abstract override def x = super.x + 2
}
trait C extends A {
abstract override def x = super.x
}

View File

@ -1,12 +0,0 @@
# This test verifies that adding/removing calls to super in traits properly
# recompiles subclasses. super calls introduce accessors that are not in
# the public API, so this is not picked up by the usual API change detection.
> run 1
$ copy-file changes/B2.scala B.scala
> run 5
$ copy-file changes/B3.scala B.scala
> run 21