JVM_IR minor: update test
This commit is contained in:
committed by
teamcityserver
parent
b184c72e3d
commit
0098103376
@@ -9,19 +9,19 @@
|
||||
// 1 java/lang/invoke/LambdaMetafactory
|
||||
|
||||
// FILE: reifiedTypeParameter.kt
|
||||
class OK
|
||||
|
||||
inline fun <reified T> f(x: T) =
|
||||
println("${T::class.simpleName}($x)")
|
||||
T::class.simpleName
|
||||
|
||||
fun call(c: Consumer<String>) = c.accept("")
|
||||
fun call(c: Consumer<OK>) = 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<T> {
|
||||
void accept(T t);
|
||||
String accept(T t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user