diff --git a/compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.kt b/compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.kt index e717d76ac62..861639167f0 100644 --- a/compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.kt +++ b/compiler/testData/codegen/box/invokedynamic/sam/reifiedTypeParameter.kt @@ -9,19 +9,19 @@ // 1 java/lang/invoke/LambdaMetafactory // FILE: reifiedTypeParameter.kt +class OK inline fun f(x: T) = - println("${T::class.simpleName}($x)") + T::class.simpleName -fun call(c: Consumer) = c.accept("") +fun call(c: Consumer) = c.accept(OK()) fun box(): String { - call(::f) // `f` has a reified type parameter and thus isn't callable directly - return "OK" + return call(::f) // `f` has a reified type parameter and thus isn't callable directly } // FILE: Consumer.java public interface Consumer { - void accept(T t); + String accept(T t); }