Fix callable reference to member of generic class
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
var result = "Fail"
|
||||
|
||||
class A<T> {
|
||||
fun foo(t: T) {
|
||||
result = t as String
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
(A<String>::foo).call(A<String>(), "OK")
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user