Update box tests to 1.2.0-rc-39
This commit is contained in:
committed by
Pavel Punegov
parent
0121b6a185
commit
ffa1ffa659
+15
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Host {
|
||||
val ok = "OK"
|
||||
|
||||
fun foo() = run { bar(ok) }
|
||||
|
||||
companion object {
|
||||
val ok = 0
|
||||
|
||||
fun bar(s: String) = s.substring(ok)
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = Host().foo()
|
||||
@@ -1,7 +1,3 @@
|
||||
// TODO: Enable for JS when it supports Java class library.
|
||||
// IGNORE_BACKEND: JS
|
||||
// fails on JS with TypeError: imported$plus is not a function, it is undefined.
|
||||
|
||||
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
|
||||
|
||||
fun box() : String {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
class `A!u00A0`() {
|
||||
val ok = "OK"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return `A!u00A0`().ok
|
||||
}
|
||||
Reference in New Issue
Block a user