compiler testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
package a
|
||||
|
||||
trait A
|
||||
interface A
|
||||
|
||||
fun <T> emptyList(): List<T> = throw Exception()
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
package s
|
||||
|
||||
trait In<in T>
|
||||
interface In<in T>
|
||||
|
||||
trait A
|
||||
trait B
|
||||
trait C: A, B
|
||||
interface A
|
||||
interface B
|
||||
interface C: A, B
|
||||
|
||||
fun <T> foo(in1: In<T>, in2: In<T>): T = throw Exception("$in1 $in2")
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ fun <T: Any> foo(v: Any): T? = unescape(v)
|
||||
|
||||
//--------------
|
||||
|
||||
trait A
|
||||
interface A
|
||||
|
||||
fun <R : A> unescapeA(value: Any): R? = throw Exception("$value")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user