mirror of https://github.com/sbt/sbt.git
test case for a plain override modifier change. Ref #726.
This commit is contained in:
parent
bef8ce05b9
commit
3c51b93bd8
|
|
@ -0,0 +1,3 @@
|
|||
trait A {
|
||||
def x: Int
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
trait B extends A {
|
||||
override def x = 2
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
trait C extends A {
|
||||
def x = 5
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
trait D extends C with B
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
trait B extends A {
|
||||
def x = 2
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> compile
|
||||
$ copy-file changes/B2.scala B.scala
|
||||
-> compile
|
||||
Loading…
Reference in New Issue