Bug 12152 – Cannot forward reference subclass member in superclass

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-13T08:43:00Z
Last change time
2015-06-17T21:01:47Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2014-02-13T08:43:03Z
class A { alias B.X Y; } class B : A { alias int X; } ---- Error: no property 'X' for type 'bug.B' A different error if the declaration is shadowed: class A { alias B.X X; } class B : A { alias int X; } ---- Error: alias bug.A.X cannot resolve
Comment #1 by k.hara.pg — 2015-03-10T03:39:45Z
Comment #2 by github-bugzilla — 2015-03-27T11:01:41Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91dd1ff1ec207d3510fc12808e8166c3f80dab05 fix Issue 12152 - Cannot forward reference subclass member in superclass https://github.com/D-Programming-Language/dmd/commit/a17015aa5d0dbd2a0e1eca68067cb7f81ba48e32 Merge pull request #4469 from 9rnsr/fix12152 Issue 12152 - Cannot forward reference subclass member in superclass
Comment #3 by github-bugzilla — 2015-04-01T03:30:02Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8efa502a209c64a75f682956cab0b3647737c614 More fix for issue 12152 - Add setScope() call to be able to resolve forward references
Comment #4 by github-bugzilla — 2015-06-17T21:01:47Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91dd1ff1ec207d3510fc12808e8166c3f80dab05 fix Issue 12152 - Cannot forward reference subclass member in superclass https://github.com/D-Programming-Language/dmd/commit/a17015aa5d0dbd2a0e1eca68067cb7f81ba48e32 Merge pull request #4469 from 9rnsr/fix12152 https://github.com/D-Programming-Language/dmd/commit/8efa502a209c64a75f682956cab0b3647737c614 More fix for issue 12152 - Add setScope() call to be able to resolve forward references