NI: extract diagnostics from partially resolved call instead of separately handling it including running all checks
^KT-37630 Fixed ^KT-35494 Fixed
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNCHECKED_CAST -UNUSED_EXPRESSION
|
||||
|
||||
fun <T> consumeLongAndMaterialize(x: Long): T = null as T
|
||||
fun consumeAny(x: Any) = x
|
||||
|
||||
fun main() {
|
||||
consumeAny(consumeLongAndMaterialize(3 * 1000))
|
||||
|
||||
if (true) {
|
||||
consumeLongAndMaterialize(3 * 1000)
|
||||
} else true
|
||||
}
|
||||
Reference in New Issue
Block a user