Working on bindings
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user