[FIR] Harden check of argument type properly
Before this commit, nullable argument could match not null parameter. Now we require also correct nullability that breaks some cases
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fe779bf7bd
commit
34e6649d31
@@ -46,7 +46,7 @@ fun main() {
|
||||
a.bar()
|
||||
a.baz(listOf())
|
||||
|
||||
a.<!AMBIGUITY!>manyParams<!>(null)
|
||||
a.manyParams(null)
|
||||
a.manyParams(any<kotlin.jvm.functions.FunctionN<Unit>>())
|
||||
|
||||
// Potentially, this would have better to forbid calling manyParams, too.
|
||||
|
||||
Reference in New Issue
Block a user