Working on bindings

This commit is contained in:
Andrey Breslav
2011-06-12 21:54:35 +04:00
parent d4b1658bde
commit c2aceefe76
3 changed files with 53 additions and 25 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ fun f12(a : A?) {
is Any => a.foo();
is Any? => a.<error>bar</error>()
is val c : <error>B</error> => c.foo()
is val c is C => c.foo()
is val c is C => <info descr="Automatically cast to C">c</info>.bar()
is val c is C => <info descr="Automatically cast to C">a</info>.bar()
else => a?.foo()
}
}