[IR] dumpKotlinLike: add testdata for FIR tests
This commit is contained in:
committed by
teamcityserver
parent
d7bd4240e1
commit
c68040753d
@@ -0,0 +1,17 @@
|
||||
fun foo(): Any {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun test(): Int {
|
||||
return { // BLOCK
|
||||
val y: Any = foo()
|
||||
when {
|
||||
EQEQ(arg0 = y, arg1 = 42) -> 1
|
||||
y is String -> y /*as String */.<get-length>()
|
||||
y !is Int -> 2
|
||||
error("") /* ERROR CALL */y; -> 3
|
||||
error("") /* ERROR CALL */y; .not() -> 4
|
||||
else -> -1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user