diff --git a/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt b/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt index ece9be384e3..497721027c3 100644 --- a/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt +++ b/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt @@ -8,5 +8,6 @@ import kotlin.reflect.jvm.isAccessible fun doStuff(fn: KFunction1) = fn.call("oK") fun box(): String { - return doStuff(String::capitalize.apply { isAccessible = true }) + val method: KFunction1 = String::capitalize + return doStuff(method.apply { isAccessible = true }) }