Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbc: typeini - allow implicit up-casting for NEW()
- revert behaviour where NEW() disallowed up-casting - allow up-casting for NEW() initializers - for example, this is now - allowed again: type parent i as integer end type type child extends parent j as integer end type dim c as child '' implicit up-cast of c to parent dim p as parent ptr = new parent( c )
- Loading branch information
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters