www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21458] New: missed oportunity to progapage final to its its

https://issues.dlang.org/show_bug.cgi?id=21458

          Issue ID: 21458
           Summary: missed oportunity to progapage final to its its
                    aliased symbol
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

a case of noop attribute:

---
class Y {}
class A(T) {}
final alias B = A!Y;    // final class B : A!T {}  ???
class C : B {}          // could be rejected, B being "final"

void main()
{
    C b;
}   
---

--
Dec 07 2020