KT-434 test and ability to supply full JDK for compiler tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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("lala") == null) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user