test(KT-47806): add tests for the uncovered behavior for generic companion function extensions.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun <T> T.f(E: (y: T) -> String): Boolean = E(this).isEmpty()
|
||||
|
||||
fun fu1() = (String).f { v -> "" }
|
||||
|
||||
fun box(): String {
|
||||
if (!fu1()) return "Failed: Expect lambda to return empty string"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user