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.getParameters().get(index = 0) val size: Int = parameter.getAnnotations().() when { EQEQ(arg0 = size, arg1 = 1) -> return "OK" } return "ERR: " + size } open annotation class Ann : Annotation { constructor() /* primary */ { super/*Any*/() /* () */ } } interface I { fun m(@Ann s: String) { } }