[Issue 1335] typedef-1 can't be stored in same typedef

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 11 16:47:52 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1335





------- Comment #4 from webmaster at villagersonline.com  2007-07-11 18:47 -------
There are a number of ways that you might make this work, but IMHO the current
implementation is broken.  (Maybe it's working as design, and the design is
broken, too, I don't know.)  Let me expand the example code:

typedef uint foo;
void main() {
  foo f = 100;
  f--; // this works
  uint i = f-1; // this works
  foo g = f-1; // this doesn't
}



More information about the Digitalmars-d-bugs mailing list