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,3 +1,8 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: BRIDGE_ISSUES
// Before we implemented native wasm strings this passed by chance, only because we inserted unbox intrinsic at the end of
// the BImpl::<get-result>. Need to find common source of this bridge problems.
interface A {
val result: Any
}
@@ -1,3 +1,8 @@
// 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.
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,8 @@
// 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.
open class Foo {
open fun foo(x: CharSequence = "O"): CharSequence = x
}
@@ -1,3 +1,8 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, A.g 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> {
val prop: T
@@ -1,3 +1,8 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, A.g 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> {
val prop: T
@@ -1,3 +1,8 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FAKE_OVERRIDE_ISSUES
// On wasm this will produce conflicting return types, A.g 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> {
val prop: T
@@ -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")
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: WASM
// KT-5159
object Test {