Join Slack
Powered by
``` val x: ParentBar = something() x.foo = ParentF...
# announcements
k
karelpeeters
12/09/2018, 10:58 AM
Copy code
val x: ParentBar = something() x.foo = ParentFoo()
Should (and does) compile, right? Now think about what would happen if
something()
returned a
ChildBar
.
Open in Slack
Previous
Next