test case for a plain override modifier change. Ref #726.

This commit is contained in:
Mark Harrah 2013-04-15 14:12:15 -04:00
parent bef8ce05b9
commit 3c51b93bd8
6 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
trait A {
def x: Int
}

View File

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

View File

@ -0,0 +1,3 @@
trait C extends A {
def x = 5
}

View File

@ -0,0 +1 @@
trait D extends C with B

View File

@ -0,0 +1,3 @@
trait B extends A {
def x = 2
}

View File

@ -0,0 +1,3 @@
> compile
$ copy-file changes/B2.scala B.scala
-> compile