KT-5971 Missing error when fun argument is safe call
#KT-5971 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
//KT-5971 Missing error when fun argument is safe call
|
||||
|
||||
fun foo(i: Int) {}
|
||||
|
||||
fun test(s: String?) {
|
||||
foo(<!TYPE_MISMATCH!>s?.length<!>)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
internal fun foo(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
internal fun test(/*0*/ s: kotlin.String?): kotlin.Unit
|
||||
Reference in New Issue
Block a user