Tests for boxing optimization on KClass are JVM-specific

This commit is contained in:
Dmitry Petrov
2017-09-06 14:20:05 +03:00
parent 61faa068d4
commit 8c5d18c1f2
3 changed files with 2 additions and 26 deletions
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
fun test(a: Any) = when (a::class) {
String::class -> "String"
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
fun box(): String {
42.doSwitchInt()