LIFO order for autocasts

This commit is contained in:
Andrey Breslav
2011-06-12 18:38:05 +04:00
parent d64b5b3a74
commit 7536501607
3 changed files with 39 additions and 22 deletions
+14
View File
@@ -39,3 +39,17 @@ fun f10() {
return;
}
}
class C() : A() {
fun bar() {
}
}
fun f10(a : A?) {
if (a is B) {
if (a is C) {
<info descr="Automatically cast to C">a</info>.bar();
}
}
}