| Thread overview | |||||
|---|---|---|---|---|---|
|
April 06, 2021 [Issue 20777] User defined type as enum base type fails to compile. | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20777 Paul Backus <snarwin+bugzilla@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |snarwin+bugzilla@gmail.com Summary|User defined types as |User defined type as enum |anonymous enums basetype, |base type fails to compile. |fail to compile. | Severity|enhancement |normal --- Comment #1 from Paul Backus <snarwin+bugzilla@gmail.com> --- Simplified example: --- struct fooint { int i; auto opBinary(string op : "+")(int j) { return fooint(i + j); } @property fooint max() { return fooint(int.max); } } enum foolist { hi = fooint(0), bye } --- Produces the following error message: --- Error: no property `max` for type `fooint`, did you mean `onlineapp.fooint.max`? --- -- | ||||
February 07, 2022 [Issue 20777] User defined type as enum base type fails to compile. | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20777 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- @maxhaton created dlang/dmd pull request #13620 "Fix Issue 20777 - Extend enum base type semantic to user defined type…" fixing this issue: - Fix Issue 20777 - Extend enum base type semantic to user defined type's with operator overloads https://github.com/dlang/dmd/pull/13620 -- | ||||
February 08, 2022 [Issue 20777] User defined type as enum base type fails to compile. | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20777 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #13620 "Fix Issue 20777 - Extend enum base type semantic to user defined type…" was merged into master: - 8e81413ebbe0587e8cdb5ebb5ee8bc93ae2693bd by Max Haughton: Fix Issue 20777 - Extend enum base type semantic to user defined type's with operator overloads https://github.com/dlang/dmd/pull/13620 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply