Introduce 'reified' instead of 'erased'

This commit is contained in:
Andrey Breslav
2012-06-05 20:05:35 +04:00
parent 0ceee0a383
commit 91606a3901
98 changed files with 158 additions and 157 deletions
@@ -1,4 +1,4 @@
fun <erased T : Any> T?.iterator() = object {
fun <T : Any> T?.iterator() = object {
var hasNext = this@iterator != null
private set
@@ -1 +1,2 @@
fun box() = if(arrayOfNulls<Int>(10) is Array<java.lang.Integer>) "OK" else "fail"