[IR] add testdata for dumpKotlinLike
This commit is contained in:
committed by
teamcityserver
parent
d2022ab115
commit
8d5facb15f
+62
@@ -0,0 +1,62 @@
|
||||
fun test1d(x: Double, y: Double): Boolean {
|
||||
return less(arg0 = x, arg1 = y)
|
||||
}
|
||||
|
||||
fun test2d(x: Double, y: Any): Boolean {
|
||||
return when {
|
||||
y is Double -> less(arg0 = x, arg1 = y /*as Double */)
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun test3d(x: Any, y: Any): Boolean {
|
||||
return when {
|
||||
when {
|
||||
x is Double -> y is Double
|
||||
true -> false
|
||||
} -> less(arg0 = x /*as Double */, arg1 = y /*as Double */)
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun test1f(x: Float, y: Float): Boolean {
|
||||
return less(arg0 = x, arg1 = y)
|
||||
}
|
||||
|
||||
fun test2f(x: Float, y: Any): Boolean {
|
||||
return when {
|
||||
y is Float -> less(arg0 = x, arg1 = y /*as Float */)
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun test3f(x: Any, y: Any): Boolean {
|
||||
return when {
|
||||
when {
|
||||
x is Float -> y is Float
|
||||
true -> false
|
||||
} -> less(arg0 = x /*as Float */, arg1 = y /*as Float */)
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun testFD(x: Any, y: Any): Boolean {
|
||||
return when {
|
||||
when {
|
||||
x is Float -> y is Double
|
||||
true -> false
|
||||
} -> less(arg0 = x /*as Float */.toDouble(), arg1 = y /*as Double */)
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun testDF(x: Any, y: Any): Boolean {
|
||||
return when {
|
||||
when {
|
||||
x is Double -> y is Float
|
||||
true -> false
|
||||
} -> less(arg0 = x /*as Double */, arg1 = y /*as Float */.toDouble())
|
||||
true -> false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user