Compiler permits override
on postinit()
and init()
, but probably shouldn't
#26515
Labels
override
on postinit()
and init()
, but probably shouldn't
#26515
In #26430 (review), @cassella convincingly pointed out that
override
on aproc postinit()
call doesn't really make sense, as thepostinit()
calls aren't really called in a dynamically dispatched way. Assuming neither of us are missing anything, this suggests that the language shouldn't really permitoverride
to be attached topostinit()
calls. Checking, it seems we also permitoverride
to be attached toinit()
calls, but this also doesn't seem quite right. Note that theoverride
calls don't seem to have an effect on the program behavior (which is somewhat reassuring).Associated Future Test(s):
test/classes/initializers/inheritance/override.chpl
Add futures showing thatoverride
can be applied to init() and postinit() #26518test/classes/initializers/postInit/override.chpl
Add futures showing thatoverride
can be applied to init() and postinit() #26518test/classes/initializers/postInit/override2.chpl
Add futures showing thatoverride
can be applied to init() and postinit() #26518test/classes/initializers/postInit/override3.chpl
Add futures showing thatoverride
can be applied to init() and postinit() #26518The text was updated successfully, but these errors were encountered: