diff --git a/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.kt b/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.kt index a105dfc5bfa..f6292d2abbb 100644 --- a/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.kt +++ b/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.kt @@ -24,6 +24,6 @@ class A : (@Ann Int)->Unit { @Target(AnnotationTarget.TYPE) annotation class TypeAnn -val onType: (@TypeAnn A).(@Ann a: @TypeAnn A, @TypeAnn A)->@TypeAnn A? = { null } +val onType: (@TypeAnn A).(@Ann a: @TypeAnn A, @TypeAnn A)->@TypeAnn A? = { null } -fun (@TypeAnn A).extFun(@Ann a: @TypeAnn A): @TypeAnn A? = null \ No newline at end of file +fun (@TypeAnn A).extFun(@Ann a: @TypeAnn A): @TypeAnn A? = null \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.txt b/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.txt index ef3339c5fda..aac4c352255 100644 --- a/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.txt +++ b/compiler/testData/diagnostics/tests/annotations/annotationOnParameterInFunctionType.txt @@ -1,12 +1,12 @@ package public val inVal: (kotlin.Int) -> kotlin.Unit -public val onType: @TypeAnn() A.(@TypeAnn() A, A) -> A? +public val onType: @TypeAnn() A.(@TypeAnn() A, A) -> @TypeAnn() A? public fun f(/*0*/ @Ann() x: kotlin.Int): kotlin.Unit public fun inParam(/*0*/ fn: (kotlin.Int) -> kotlin.Unit): kotlin.Unit public fun inParamNested(/*0*/ fn1: ((kotlin.Int) -> kotlin.Unit) -> kotlin.Unit): kotlin.Unit public fun inReturn(): (kotlin.Int) -> kotlin.Unit -public fun @TypeAnn() A.extFun(/*0*/ @Ann() a: @TypeAnn() A): A? +public fun @TypeAnn() A.extFun(/*0*/ @Ann() a: @TypeAnn() A): @TypeAnn() A? public final class A : (kotlin.Int) -> kotlin.Unit { public constructor A()