KT-434 test and ability to supply full JDK for compiler tests

This commit is contained in:
Alex Tkachman
2011-11-19 07:01:58 +02:00
parent 39ca8eded8
commit abb15a85d6
3 changed files with 29 additions and 0 deletions
@@ -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"
}