'is' works with generic types correctly (initial implementation of reified generics)

This commit is contained in:
Dmitry Jemerov
2011-05-13 18:06:25 +02:00
parent 5711927522
commit 26790f1346
7 changed files with 179 additions and 33 deletions
@@ -0,0 +1,7 @@
class Wrapper<T>() {
}
fun foo() {
val wrapper = new Wrapper<Int>()
return wrapper is Wrapper<String>
}