rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
160 stars 46 forks source link

Tasks not extended properly when the component is not closed properly #1146

Closed waaadim closed 5 months ago

waaadim commented 5 months ago

When you define a getName function in BaseTask and override it in ChildTask if you close the node with /> the function from the BaseTask is used instead.

This used to work in 0.65.*, but fails in the latest alpha 1.0.0-alpha.29


BUG:  <component name="ChildTask" extends="BaseTask"/>
OK:     <component name="ChildTask" extends="BaseTask"></component>

function getName()
  return ""
end function