FIR: Report diagnostics introduced during call completion
This commit is contained in:
committed by
teamcityserver
parent
09321e5e41
commit
a700fdc312
+8
@@ -0,0 +1,8 @@
|
||||
// SKIP_TXT
|
||||
|
||||
fun foo(x: () -> Int): Int = x()
|
||||
|
||||
fun <R> myRun(x: () -> R): R = x()
|
||||
|
||||
private val a = foo { myRun { <!ARGUMENT_TYPE_MISMATCH!>"OK"<!> } }
|
||||
private val b: Int = myRun { <!ARGUMENT_TYPE_MISMATCH!>"OK"<!> }
|
||||
Reference in New Issue
Block a user