KT-3461 Nullable argument allowed where shouldn't be
#KT-3461 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//KT-3461 Nullable argument allowed where shouldn't be
|
||||
package a
|
||||
|
||||
class F {
|
||||
fun p(): String? = null
|
||||
}
|
||||
|
||||
fun foo(<!UNUSED_PARAMETER!>s<!>: String) {}
|
||||
|
||||
fun r(): Int? = null
|
||||
|
||||
fun test() {
|
||||
foo(<!TYPE_MISMATCH!>F().p()<!>)
|
||||
foo(<!TYPE_MISMATCH!>r()<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user