Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/fullJdk/kt434.kt
T
Alexander Udalov d011fa8dc6 Add FULL_JDK to tests in codegen/boxWithStdlib/fullJdk/
Drop the old scheme which relied on the directory name
2016-03-03 16:08:18 +03:00

16 lines
273 B
Kotlin
Vendored

// FULL_JDK
import java.net.*
fun String.decodeURI(encoding : String) : String? =
try {
URLDecoder.decode(this, encoding)
}
catch (e : Throwable) {
null
}
fun box() : String {
return if("hhh".decodeURI("") == null) "OK" else "fail"
}