Mercurial > projects > ddmd
comparison dmd/TypeBasic.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | e28b18c23469 |
children | 4251f96733f4 |
comparison
equal
deleted
inserted
replaced
129:010eb8f0e18d | 130:60bb0fe4563e |
---|---|
509 L2: | 509 L2: |
510 e = new RealExp(Loc(0), 0.0, t); | 510 e = new RealExp(Loc(0), 0.0, t); |
511 break; | 511 break; |
512 | 512 |
513 default: | 513 default: |
514 return Type.getProperty(e.loc, ident); | 514 e = Type.getProperty(e.loc, ident); |
515 break; | |
515 } | 516 } |
516 } | 517 } |
517 else if (ident is Id.im) | 518 else if (ident is Id.im) |
518 { | 519 { |
519 Type t2; | 520 Type t2; |
541 case TY.Tfloat80: | 542 case TY.Tfloat80: |
542 e = new RealExp(Loc(0), 0.0, this); | 543 e = new RealExp(Loc(0), 0.0, this); |
543 break; | 544 break; |
544 | 545 |
545 default: | 546 default: |
546 return Type.getProperty(e.loc, ident); | 547 e = Type.getProperty(e.loc, ident); |
548 break; | |
547 } | 549 } |
548 } | 550 } |
549 else | 551 else |
550 { | 552 { |
551 return Type.dotExp(sc, e, ident); | 553 return Type.dotExp(sc, e, ident); |
552 } | 554 } |
555 e = e.semantic(sc); | |
553 return e; | 556 return e; |
554 } | 557 } |
555 | 558 |
556 override string toChars() | 559 override string toChars() |
557 { | 560 { |