KT-5971 Missing error when fun argument is safe call

#KT-5971 Fixed
This commit is contained in:
Svetlana Isakova
2014-10-14 21:06:51 +04:00
parent c339df65a9
commit c0c9552f4c
5 changed files with 24 additions and 4 deletions
@@ -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