Files
kotlin-fork/compiler/testData/diagnostics/wasmTests/jsInterop/dynamicUnsupported.kt
T
Svyatoslav Kuzmich 83ba1ac0f7 [Wasm] Diagnostic test: dynamic type is unsupported
Validates the fix for KT-56711
2023-02-24 11:35:15 +00:00

9 lines
199 B
Kotlin
Vendored

val foo: <!UNSUPPORTED!>dynamic<!> = 1
fun foo(x: <!UNSUPPORTED!>dynamic<!>): <!UNSUPPORTED!>dynamic<!> {
class C {
val foo: <!UNSUPPORTED!>dynamic<!> = 1
}
return x + C().foo
}