Add regression tests for KT-46890 and other stuff
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM, WASM
|
||||
interface I<T> {
|
||||
fun foo(x: T): Any?
|
||||
}
|
||||
|
||||
class C : I<Result<Any?>> {
|
||||
override fun foo(x: Result<Any?>) = x.getOrNullNoinline()
|
||||
}
|
||||
|
||||
fun <T> Result<T>.getOrNullNoinline() = getOrNull()
|
||||
|
||||
fun box() = C().foo(Result.success("OK"))
|
||||
Reference in New Issue
Block a user