JVM IR: Resolve fake overrides when calculating return types (KT-44867)

This commit is contained in:
Steven Schäfer
2021-03-10 12:51:39 +01:00
committed by Alexander Udalov
parent cae95b1ba0
commit d0424465b8
12 changed files with 58 additions and 4 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// IGNORE_BACKEND: JVM
open class BaseWrapper<T>(val response: T)
class Wrapper(result: Result<String>) : BaseWrapper<Result<String>>(result)
fun box(): String {
return Wrapper(Result.success("OK")).response.getOrThrow()
}