[FIR] Fix tests (ARGUMENT_TYPE_MISMATCH instead of INCOMPATIBLE_CANDIDATE)
This commit is contained in:
committed by
TeamCityServer
parent
4ffab5fe5a
commit
ad9b962536
@@ -1,23 +1,23 @@
|
||||
fun bar(x: Int) = x + 1
|
||||
|
||||
fun f1(x: Int?) {
|
||||
<!INAPPLICABLE_CANDIDATE!>bar<!>(x)
|
||||
bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
|
||||
if (x != null) bar(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>)
|
||||
if (x == null) bar(x!!)
|
||||
}
|
||||
|
||||
fun f2(x: Int?) {
|
||||
fun f2(x: Int?) {
|
||||
if (x != null) else x!!
|
||||
}
|
||||
|
||||
fun f3(x: Int?) {
|
||||
fun f3(x: Int?) {
|
||||
if (x != null) bar(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>) else x!!
|
||||
}
|
||||
|
||||
fun f4(x: Int?) {
|
||||
|
||||
fun f4(x: Int?) {
|
||||
if (x == null) x!! else bar(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>)
|
||||
}
|
||||
|
||||
fun f5(x: Int?) {
|
||||
fun f5(x: Int?) {
|
||||
if (x == null) else bar(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user