[Issue 16437] Enum type inference

2019-05-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16437 Basile-z changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 16437] Enum type inference

2019-03-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16437 --- Comment #2 from Basile-z --- So I started implementing the stuff yesterday and unfortunately the inference cannot be limited to the function call. Only simpler cases such as initializers would work with inference limited to the scope of the curre

[Issue 16437] Enum type inference

2018-11-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16437 --- Comment #1 from Basile B. --- Other possible cases: SomeEnum {se1, se2} SomeEnum x = se1 | se2; // OK, there's a hint to solve se1 and se2 auto y = se1 | se2; // Error (unless se1/se2 exist as var in the scope. --