mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
test case for a plain override modifier change. Ref #726.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user