compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
trait A {
|
||||
interface A {
|
||||
public val c: Int
|
||||
}
|
||||
|
||||
trait B: A {
|
||||
interface B: A {
|
||||
override protected private val c: Int
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class A : B() {
|
||||
fun getB(): Int = 1
|
||||
val b: Int = 1
|
||||
|
||||
trait Tr {
|
||||
interface Tr {
|
||||
fun getTr() = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package wrong
|
||||
|
||||
trait TraitWithDefault {
|
||||
interface TraitWithDefault {
|
||||
fun foo() = 1
|
||||
}
|
||||
@@ -5,6 +5,6 @@ fun foo(p: Int??) {
|
||||
|
||||
}
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
abstract fun foo()
|
||||
}
|
||||
Reference in New Issue
Block a user