compiler testdata: s/trait/interface
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package h
|
||||
|
||||
trait A<T> {}
|
||||
interface A<T> {}
|
||||
|
||||
fun <T> newA(): A<T> = throw Exception()
|
||||
|
||||
trait Z
|
||||
interface Z
|
||||
|
||||
fun <T> id(t: T): T = t
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package j
|
||||
|
||||
trait MyFunc<T> {}
|
||||
interface MyFunc<T> {}
|
||||
|
||||
class A(val b: B) {
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package a
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
val b: B
|
||||
val nb: B?
|
||||
}
|
||||
|
||||
trait B {
|
||||
interface B {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user