compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Changed when traits were introduced. May not make sense any more
|
||||
|
||||
open class X(val x : Int) {}
|
||||
trait Y {
|
||||
interface Y {
|
||||
abstract val y : Int
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class Point(x : Int, yy : Int) : X(x) , Y {
|
||||
override val y : Int = yy
|
||||
}
|
||||
|
||||
trait Abstract {}
|
||||
interface Abstract {}
|
||||
|
||||
class P1(x : Int, yy : Y) : Abstract, X(x), Y by yy {}
|
||||
class P2(x : Int, yy : Y) : X(x), Abstract, Y by yy {}
|
||||
|
||||
Reference in New Issue
Block a user