diff --git a/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.fir.kt b/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.fir.kt index e230b4e57b6..c4633352301 100644 --- a/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.fir.kt +++ b/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.fir.kt @@ -33,6 +33,7 @@ fun nestedBuild( ): NestedBuildee { return NestedBuildee().apply(instructions) } +class Placeholder // test 1: PTV is in consuming position (yield-case) fun testYield() { @@ -40,7 +41,7 @@ fun testYield() { val buildee = build { nestedBuild { yield(arg) - nestedYield(Any()) + nestedYield(Placeholder()) } } checkExactType<Buildee>(buildee) @@ -52,7 +53,7 @@ fun testMaterialize() { val buildee = build { nestedBuild { consume(materialize()) - nestedYield(Any()) + nestedYield(Placeholder()) } } checkExactType<Buildee>(buildee) diff --git a/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.kt b/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.kt index a7a6ce7f3b1..63e0c9284f4 100644 --- a/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.kt +++ b/compiler/testData/diagnostics/tests/builderInference/oneParameter/oneTypeVariable/oneTypeInfoOrigin/sourceSinkFeedContexts/InsideNestedBuilderInferenceLambda.kt @@ -33,6 +33,7 @@ fun nestedBuild( ): NestedBuildee { return NestedBuildee().apply(instructions) } +class Placeholder // test 1: PTV is in consuming position (yield-case) fun testYield() { @@ -40,7 +41,7 @@ fun testYield() { val buildee = build { nestedBuild { yield(arg) - nestedYield(Any()) + nestedYield(Placeholder()) } } checkExactType>(buildee) @@ -52,7 +53,7 @@ fun testMaterialize() { val buildee = build { nestedBuild { consume(materialize()) - nestedYield(Any()) + nestedYield(Placeholder()) } } checkExactType>(buildee)