open annotation class Ann : Annotation { constructor() /* primary */ { super/*Any*/() /* () */ } } interface I { fun m(@Ann s: String) { } } fun box(): String { val impl: = { // BLOCK local class : I { constructor() /* primary */ { super/*Any*/() /* () */ } } () } val method: @FlexibleNullability Method? = impl.<>().getMethod(p0 = "m", p1 = [String::class.()]) val parameter: @FlexibleNullability Parameter? = method /*!! Method */.getParameters() /*!! Array */ /*as Array<@FlexibleNullability Parameter?> */.get(index = 0) val size: Int = parameter /*!! Parameter */.getAnnotations() /*!! Array */ /*as Array<@FlexibleNullability Annotation?> */.() when { EQEQ(arg0 = size, arg1 = 1) -> return "OK" } return "ERR: " + size }