[IR] add testdata for dumpKotlinLike

This commit is contained in:
Zalim Bashorov
2020-11-05 02:47:53 +03:00
committed by teamcityserver
parent d2022ab115
commit 8d5facb15f
365 changed files with 15516 additions and 0 deletions
@@ -0,0 +1,38 @@
fun expectsString(s: String) {
}
fun expectsInt(i: Int) {
}
fun overloaded(s: String): String {
return s
}
fun overloaded(x: Any): Any {
return x
}
fun test1(x: Any) {
when {
x !is String -> return Unit
}
println(message = x /*as String */.<get-length>())
expectsString(s = x /*as String */)
expectsInt(i = x /*as String */.<get-length>())
expectsString(s = overloaded(s = x /*as String */))
}
fun test2(x: Any): String {
when {
x !is String -> return ""
}
return overloaded(s = x /*as String */)
}
fun test3(x: Any): String {
when {
x !is String -> return ""
}
return x /*as String */
}