fuzion icon indicating copy to clipboard operation
fuzion copied to clipboard

flag warning if any outer has same name as feature

Open michaellilltokiwa opened this issue 1 year ago • 1 comments

I think it is almost always a bad idea to name a feature same as one of its outers. We might want to show a warning if this is the case.

michaellilltokiwa avatar Apr 30 '24 09:04 michaellilltokiwa

Right, using an outer feature's name for an inner feature is probably not a good idea. However, we get similar problems when inheriting features that happen to have the same name as an outer feature. What is important to me is to cause an error whenever there is an ambiguity, so any unqualified use of a feature f that exists at different outer levels should cause an error. As for warnings: we do have some warnings, but generally, something should either be allowed or forbidden, there should be little in-between.

fridis avatar May 03 '24 10:05 fridis