Skip to content

Commit 34b6eee

Browse files
committed
Allow alias this to use assignment-style syntax
See DMD PR for rationale: dlang/dmd#15122
1 parent 5e4d15b commit 34b6eee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/struct.dd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,7 @@ $(H2 $(LEGACY_LNAME2 AliasThis, alias-this, Alias This))
20112011
$(GRAMMAR
20122012
$(GNAME AliasThis):
20132013
$(D alias) $(GLINK_LEX Identifier) $(D this ;)
2014+
$(D alias) $(D this) $(D =) $(GLINK_LEX Identifier) $(D ;)
20142015
)
20152016

20162017
$(P An $(I AliasThis) declaration names a member to subtype.

0 commit comments

Comments
 (0)