diff --git a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt index b7212bcb280..1c01b530832 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/when/noTypeArgumentsInConstructor.fir.kt @@ -23,21 +23,21 @@ val test3: MutableList = } val test4: Collection = - listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { - listOf(it) + listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { + listOf(it) } val test5: Collection = - listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { // TODO - if (true) listOf(it) else listOf(it) + listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { // TODO + if (true) listOf(it) else listOf(it) } val test6: Collection = - listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { - if (true) listOf(it) else listOf(it) + listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { + if (true) listOf(it) else listOf(it) } val test7: Collection = - listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { - select(listOf(it), listOf(it)) + listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { + select(listOf(it), listOf(it)) } \ No newline at end of file diff --git a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.txt b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.txt index ba120065e3f..7c7f6738689 100644 --- a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.txt +++ b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.txt @@ -4,15 +4,11 @@ FILE fqName: fileName:/typeParametersInImplicitCast.kt VALUE_PARAMETER name:lss index:0 type:kotlin.collections.List.problematic>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun problematic (lss: kotlin.collections.List.problematic>>): kotlin.collections.List.problematic> declared in ' - CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List [inline] declared in kotlin.collections' type=kotlin.collections.List.problematic> origin=null - : kotlin.collections.List.problematic> - : T of .problematic - $receiver: GET_VAR 'lss: kotlin.collections.List.problematic>> declared in .problematic' type=kotlin.collections.List.problematic>> origin=null - transform: FUN_EXPR type=kotlin.Function1.problematic>, kotlin.collections.Iterable.problematic>> origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.collections.List.problematic>) returnType:kotlin.collections.Iterable.problematic> - VALUE_PARAMETER name:it index:0 type:kotlin.collections.List.problematic> + ERROR_CALL 'Unresolved reference: #' type=IrErrorType + FUN_EXPR type=kotlin.Function0> origin=LAMBDA + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.collections.List BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (it: kotlin.collections.List.problematic>): kotlin.collections.Iterable.problematic> declared in .problematic' - CALL 'public/*package*/ open fun id (v: kotlin.collections.List.ListId.id?>?): kotlin.collections.List.ListId.id?> declared in .ListId' type=kotlin.collections.List.problematic?> origin=null - : T of .problematic? - v: GET_VAR 'it: kotlin.collections.List.problematic> declared in .problematic.' type=kotlin.collections.List.problematic> origin=null + RETURN type=kotlin.Nothing from='local final fun (): kotlin.collections.List declared in .problematic' + CALL 'public/*package*/ open fun id (v: kotlin.collections.List.ListId.id?>?): kotlin.collections.List.ListId.id?> declared in .ListId' type=kotlin.collections.List origin=null + : kotlin.Nothing + v: ERROR_CALL 'Unresolved reference: #' type=IrErrorType