FIR: Update test data (repeated diagnostics)
They are a bit redundant, but it needs additional work to be done to avoid them
This commit is contained in:
committed by
teamcityserver
parent
dbc0ebd861
commit
00821bbc63
@@ -16,13 +16,13 @@ public interface J2 extends J {
|
||||
|
||||
// FILE: main.kt
|
||||
fun main() {
|
||||
J { s: String -> <!ARGUMENT_TYPE_MISMATCH!>s<!>} // should be prohibited, because SAM value parameter has nullable type
|
||||
J <!ARGUMENT_TYPE_MISMATCH!>{ s: String -> s}<!> // should be prohibited, because SAM value parameter has nullable type
|
||||
J { "" + it<!UNSAFE_CALL!>.<!>length }
|
||||
J { null }
|
||||
J { it?.length?.toString() }
|
||||
J { <!NULL_FOR_NONNULL_TYPE!>null<!> }
|
||||
J { it?.length?.<!ARGUMENT_TYPE_MISMATCH!>toString()<!> }
|
||||
|
||||
J2 { s: String -> <!ARGUMENT_TYPE_MISMATCH!>s<!>}
|
||||
J2 <!ARGUMENT_TYPE_MISMATCH!>{ s: String -> s}<!>
|
||||
J2 { "" + it<!UNSAFE_CALL!>.<!>length }
|
||||
J2 { null }
|
||||
J2 { it?.length?.toString() }
|
||||
J2 { <!NULL_FOR_NONNULL_TYPE!>null<!> }
|
||||
J2 { it?.length?.<!ARGUMENT_TYPE_MISMATCH!>toString()<!> }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user