Box primitive types in position of generic receiver

#KT-9469 fixed
This commit is contained in:
Alexey Tsvetkov
2015-10-22 20:33:24 +03:00
parent 7c54024a22
commit 0a69cca066
5 changed files with 120 additions and 2 deletions
@@ -0,0 +1,8 @@
val <T> T.valProp: T where T : Number, T : Int
get() = this
fun box(): String {
0.valProp
return "OK"
}