compiler testdata: s/trait/interface
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
package a
|
||||
|
||||
|
||||
trait Foo<A>
|
||||
interface Foo<A>
|
||||
|
||||
fun <A, B> Foo<A>.map(<!UNUSED_PARAMETER!>f<!>: (A) -> B): Foo<B> = object : Foo<B> {}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
//KT-2320 failure of complex case of type inference
|
||||
package i
|
||||
|
||||
trait NotMap<B>
|
||||
interface NotMap<B>
|
||||
|
||||
trait Entry<B> {
|
||||
interface Entry<B> {
|
||||
fun getValue(): B
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
package a
|
||||
|
||||
trait MyType {}
|
||||
interface MyType {}
|
||||
class MyClass<T> : MyType {}
|
||||
|
||||
public open class HttpResponse() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package a
|
||||
|
||||
trait Closeable {}
|
||||
interface Closeable {}
|
||||
class C : Closeable {}
|
||||
|
||||
public inline fun <T: Closeable, R> T.use1(block: (T)-> R) : R {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package a
|
||||
|
||||
trait Closeable {
|
||||
interface Closeable {
|
||||
fun close() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package a
|
||||
|
||||
trait Closeable {
|
||||
interface Closeable {
|
||||
fun close() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package a
|
||||
|
||||
trait Closeable {
|
||||
interface Closeable {
|
||||
fun close() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package c
|
||||
|
||||
trait A<T>
|
||||
interface A<T>
|
||||
|
||||
fun test(a: A<Int>?) {
|
||||
a<!UNSAFE_CALL!>.<!>foo() //no error
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
package arrays
|
||||
|
||||
trait A
|
||||
trait B
|
||||
interface A
|
||||
interface B
|
||||
|
||||
object CAB : A, B
|
||||
object DAB : A, B
|
||||
|
||||
Reference in New Issue
Block a user