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