blob: 73201bf7eba49ad9d788001c95d1c452822d3444 [file]
// RUN_PIPELINE_TILL: CODEGEN
// See KT-9134: smart cast is not provided inside lambda call
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class My
fun bar(): Int = @My {
var i: Int?
i = 42
i
}()
/* GENERATED_FIR_TAGS: annotationDeclaration, assignment, functionDeclaration, integerLiteral, lambdaLiteral,
localProperty, nullableType, propertyDeclaration, smartcast */