Remove OI/NI attributes from test data
This commit is contained in:
committed by
teamcityserver
parent
2ecba6ac39
commit
ddbdfafa79
@@ -1,24 +1,23 @@
|
||||
|
||||
var longWords = 0
|
||||
val smallWords = hashSetOf<String>()
|
||||
|
||||
fun test1(word: String) =
|
||||
run {
|
||||
if (word.length > 4) {
|
||||
<!IMPLICIT_CAST_TO_ANY{OI}!>longWords++<!>
|
||||
longWords++
|
||||
}
|
||||
else {
|
||||
<!IMPLICIT_CAST_TO_ANY{OI}!>smallWords.add(word)<!>
|
||||
smallWords.add(word)
|
||||
}
|
||||
}
|
||||
|
||||
fun test2(word: String) =
|
||||
run {
|
||||
if (word.length > 4) {
|
||||
<!INVALID_IF_AS_EXPRESSION!>if<!> (word.startsWith("a")) <!IMPLICIT_CAST_TO_ANY{OI}!>longWords++<!>
|
||||
<!INVALID_IF_AS_EXPRESSION!>if<!> (word.startsWith("a")) longWords++
|
||||
}
|
||||
else {
|
||||
<!IMPLICIT_CAST_TO_ANY{OI}!>smallWords.add(word)<!>
|
||||
smallWords.add(word)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user