Files
kotlin-fork/compiler/testData/codegen/box/localClasses/nameWithWhitespace.kt
T
2020-11-09 16:04:43 +03:00

22 lines
699 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: JS
// Names with spaces are not valid according to the dex specification
// before DEX version 040. Therefore, do not attempt to dex the resulting
// class file. When D8 is updated to the most recent version, we can increase
// the min android api level during dexing to allow these spaces.
//
// See: https://source.android.com/devices/tech/dalvik/dex-format#simplename
// IGNORE_DEXING
// IGNORE_BACKEND: ANDROID
fun `method with spaces`(): String {
data class C(val s: String = "OK")
return C().s
}
fun box(): String = `method with spaces`()