compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
trait A {
|
||||
interface A {
|
||||
<!CONSTRUCTOR_IN_TRAIT!>constructor()
|
||||
<!>}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait A
|
||||
interface A
|
||||
class AImpl : A
|
||||
|
||||
class B : <!UNSUPPORTED!>A by AImpl()<!> {
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
open class B
|
||||
trait C
|
||||
trait D
|
||||
interface C
|
||||
interface D
|
||||
class A : C, B, D {
|
||||
constructor()
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ open class B(x: Double) {
|
||||
constructor(x: Int): this(1.0)
|
||||
constructor(x: String): this(1.0)
|
||||
}
|
||||
trait C
|
||||
interface C
|
||||
class A : B, C {
|
||||
constructor(): <!NONE_APPLICABLE!>super<!>(' ')
|
||||
<!EXPLICIT_DELEGATION_CALL_REQUIRED!>constructor(x: Int)<!>
|
||||
|
||||
Reference in New Issue
Block a user