Fix callable reference to member of generic class

This commit is contained in:
Alexander Udalov
2015-07-27 14:55:45 +03:00
parent 49a8c7a947
commit a93484b457
3 changed files with 19 additions and 1 deletions
@@ -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
}