Introduce synthetic scope for constructors of fun interfaces
#KT-37434 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun interface Foo<T> {
|
||||
fun invoke(): T
|
||||
}
|
||||
|
||||
fun test() {
|
||||
Foo { }
|
||||
Foo<Unit> { }
|
||||
Foo<String> <!TYPE_MISMATCH!>{ }<!>
|
||||
Foo<String> { "" }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
public fun interface Foo</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public abstract fun invoke(): T
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user