diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.txt new file mode 100644 index 00000000000..722732b73c6 --- /dev/null +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.fir.txt @@ -0,0 +1,31 @@ +FILE: kt36220.kt + public final class TypeDefinition : R|kotlin/Any| { + public constructor(): R|TypeDefinition| { + super() + } + + public final fun parse(parser: R|(@R|kotlin/ParameterName|(name = String(serializedValue)) kotlin/String) -> KotlinType?|): R|kotlin/Unit| { + ^parse R|kotlin/TODO|() + } + + public final fun serialize(parser: R|(@R|kotlin/ParameterName|(name = String(value)) KotlinType) -> kotlin/Any?|): R|kotlin/Unit| { + ^serialize R|kotlin/TODO|() + } + + } + @R|kotlin/OptIn|(markerClass = vararg((Q|kotlin/experimental/ExperimentalTypeInference|))) public final fun defineType(definition: R|TypeDefinition.() -> kotlin/Unit|): R|kotlin/Unit| { + ^defineType R|kotlin/TODO|() + } + public final fun main(): R|kotlin/Unit| { + R|/defineType|( = defineType@fun R|TypeDefinition|.(): R|kotlin/Unit| { + this@R|special/anonymous|.R|SubstitutionOverride|( = parse@fun (it: R|@R|kotlin/ParameterName|(name = String(serializedValue)) kotlin/String|): R|kotlin/Int?| { + ^ R|/it|.R|kotlin/text/toInt|() + } + ) + this@R|special/anonymous|.R|SubstitutionOverride|( = serialize@fun (it: R|kotlin/Int|): R|kotlin/Any?| { + ^ R|/it|.R|kotlin/Any.toString|() + } + ) + } + ) + } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt index d73e674faea..03031bbe097 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt36220.kt @@ -1,4 +1,5 @@ // FIR_IDENTICAL +// FIR_DUMP // !OPT_IN: kotlin.RequiresOptIn // !DIAGNOSTICS: -UNUSED_PARAMETER