FE: add tests for KT-53966 (positive/negative)
This commit is contained in:
committed by
Space Team
parent
12a083af25
commit
5a9e8b3c0a
+14
@@ -0,0 +1,14 @@
|
||||
fun main() {
|
||||
val flag = true
|
||||
consumeTicker(
|
||||
if (flag) null else <!ARGUMENT_TYPE_MISMATCH!>{ num -> num.<!UNRESOLVED_REFERENCE!>dec<!>() }<!>
|
||||
)
|
||||
}
|
||||
|
||||
fun consumeTicker(ticker: Ticker?) {
|
||||
|
||||
}
|
||||
|
||||
fun interface Ticker {
|
||||
fun tick(num: Int)
|
||||
}
|
||||
Reference in New Issue
Block a user