Remove OI/NI attributes from test data

This commit is contained in:
Denis.Zharkov
2021-05-24 12:42:39 +03:00
committed by teamcityserver
parent 2ecba6ac39
commit ddbdfafa79
441 changed files with 1005 additions and 1037 deletions
+2 -3
View File
@@ -24,7 +24,7 @@ class ListData<T : Item>(val list: List<T>) : Data
fun <T> listOf(vararg items: T): List<T> = null!!
fun test1(o: Any) = <!TYPE_INFERENCE_FAILED_ON_SPECIAL_CONSTRUCT{OI}!>when<!> (o) {
fun test1(o: Any) = when (o) {
is List<*> ->
ListData(listOf())
is Int -> when {
@@ -51,7 +51,7 @@ fun test1x(o: Any): Data? = when (o) {
}
fun test2() =
<!TYPE_INFERENCE_FAILED_ON_SPECIAL_CONSTRUCT{OI}!>if<!> (true)
if (true)
ListData(listOf())
else
FlagData(true)
@@ -64,4 +64,3 @@ fun test2y(): Any =
fun test2z(): Any =
run { if (true) ListData(listOf()) else FlagData(true) }