assorted fixes to handle boxing correctly when calling generic methods/properties; rename getUnsubstitutedValueParameters/ReturnType to getValueParameters/ReturnType

This commit is contained in:
Dmitry Jemerov
2011-06-30 16:48:13 +02:00
parent f7a04097bb
commit 8a1b9933e4
22 changed files with 79 additions and 65 deletions
@@ -0,0 +1,8 @@
class Box<T>(t: T) {
var value = t
}
fun box(): String {
val box: Box<Int> = Box<Int>(1)
return if (box.value == 1) "OK" else "fail"
}