compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
val method : (() -> Unit )?
|
||||
val test : Integer
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait A {
|
||||
interface A {
|
||||
val v: Int
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait TextField {
|
||||
interface TextField {
|
||||
fun getText(): String
|
||||
fun setText(text: String)
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait FooTrait {
|
||||
interface FooTrait {
|
||||
val propertyTest: String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait Tr<T> {
|
||||
interface Tr<T> {
|
||||
val prop: T
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait R<T: Comparable<T>> {
|
||||
interface R<T: Comparable<T>> {
|
||||
var value: T
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ class Holder(var value: Int) {
|
||||
fun set(that: Any?, desc: PropertyMetadata, newValue: Int) { value = newValue }
|
||||
}
|
||||
|
||||
trait R<T: Comparable<T>> {
|
||||
interface R<T: Comparable<T>> {
|
||||
var value: T
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ open class Base {
|
||||
val pr : String = "OK"
|
||||
}
|
||||
|
||||
trait Trait : Base {
|
||||
interface Trait : Base {
|
||||
fun f() : String {
|
||||
return this.pr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user