[Test] Convert IGNORE: NATIVE directives in box tests sam/* and sameFile*/*
^KT-59057 Merge-request: KT-MR-10758 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
4db2bc28f2
commit
ab03cb2357
@@ -1,9 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// SAM_CONVERSIONS: CLASS
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// SAM_CONVERSIONS: CLASS
|
||||
|
||||
fun interface SAM {
|
||||
fun run()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val f = { }
|
||||
val class1 = (SAM(f) as Any)::class
|
||||
val class2 = (SAM(f) as Any)::class
|
||||
|
||||
return if (class1 == class2) "OK" else "$class1 $class2"
|
||||
}
|
||||
Reference in New Issue
Block a user