Codegen tests for inner/nested classes

#KT-1174 In Progress
This commit is contained in:
Alexander Udalov
2013-01-14 19:37:12 +04:00
parent cc5ba53c80
commit 85bd41dfa5
15 changed files with 263 additions and 0 deletions
@@ -0,0 +1,11 @@
class Outer {
inner class Inner<T>(val t: T) {
fun box() = t
}
}
fun box(): String {
if (Outer().Inner("OK").box() != "OK") return "Fail"
val x: Outer.Inner<String> = Outer().Inner("OK")
return x.box()
}