// WITH_RUNTIME // IGNORE_BACKEND: JVM // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES // On wasm this will produce conflicting return types, Result. will return Any but we will try to interpret it as String. // Before wasm native strings this worked by chance because we added unbox intrinsic for strings. open class BaseWrapper(val response: T) class Wrapper(result: Result) : BaseWrapper>(result) fun box(): String { return Wrapper(Result.success("OK")).response.getOrThrow() }