WASM: Disable bunch of tests which expose the same issue after switch to the wasm native strings

This commit is contained in:
Igor Laevsky
2021-07-30 18:09:50 +03:00
committed by TeamCityServer
parent 80140207b5
commit c526145a48
16 changed files with 58 additions and 67 deletions
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// IGNORE_BACKEND: JVM
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, Result.<get-value> 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<T>(val response: T)
class Wrapper(result: Result<String>) : BaseWrapper<Result<String>>(result)
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// IGNORE_BACKEND: WASM
fun <T> Result<T>.getOrNullNoinline() = getOrNull()
val x = { a: Int, b: Result<String> -> b.getOrNullNoinline() }
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, Result::<get-value> 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.
class C {
fun foo(): Result<String> = Result.success("OK")
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, Result.<get-value> 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.
interface I {
fun foo(): Any
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, foo 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.
interface I<T> {
fun foo(): T
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, foo 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.
interface I {
fun foo(): Result<String>
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, Result.<get-value> 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.
interface I {
fun foo(): Result<String>
@@ -1,5 +1,9 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, Result.<get-value> 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.
fun foo(): Result<String> = Result.success("OK")