From fe9bd9ee20fffe57b3341c7c4a01e9b296c2d0b7 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 29 May 2019 06:47:32 +0300 Subject: [PATCH] Fix method reference ambiguity in test after introducing 'capitalize' overload --- .../codegen/box/reflection/functions/functionFromStdlib.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }) }