Refactoring: move test folder out of "inline classes" folder
It was added there by mistake
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
// !LANGUAGE: +FunctionInterfaceConversion
|
||||
|
||||
fun interface Foo {
|
||||
fun invoke(): String
|
||||
}
|
||||
|
||||
class A : Foo {
|
||||
override fun invoke(): String {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return A().invoke()
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
// !LANGUAGE: +NewInference +FunctionInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
|
||||
|
||||
fun interface Foo {
|
||||
fun invoke(): String
|
||||
}
|
||||
|
||||
fun foo(f: Foo) = f.invoke()
|
||||
|
||||
fun box(): String {
|
||||
return foo { "OK" }
|
||||
}
|
||||
Reference in New Issue
Block a user