comparison dmd/Type.d @ 87:b17640f0e4e8

Fixed a bug with a Scope.this(Scope enclosing) being called instead of Scope.clone() method (as a copy ctor replacement)
author korDen
date Mon, 30 Aug 2010 19:56:27 +0400
parents 43073c7c7769
children 3a0b150c9841 ae5b11064a9a
comparison
equal deleted inserted replaced
83:ee670dd808a8 87:b17640f0e4e8
1722 } else { 1722 } else {
1723 s = deco; 1723 s = deco;
1724 } 1724 }
1725 1725
1726 e = new StringExp(loc, s, 'c'); 1726 e = new StringExp(loc, s, 'c');
1727 Scope sc = new Scope(); 1727 scope Scope sc = new Scope();
1728 e = e.semantic(sc); 1728 e = e.semantic(sc);
1729 } 1729 }
1730 else if (ident is Id.stringof_) 1730 else if (ident is Id.stringof_)
1731 { 1731 {
1732 string s = toChars(); 1732 string s = toChars();
1733 e = new StringExp(loc, s, 'c'); 1733 e = new StringExp(loc, s, 'c');
1734 Scope sc = new Scope(); 1734 scope Scope sc = new Scope();
1735 e = e.semantic(sc); 1735 e = e.semantic(sc);
1736 } 1736 }
1737 else 1737 else
1738 { 1738 {
1739 error(loc, "no property '%s' for type '%s'", ident.toChars(), toChars()); 1739 error(loc, "no property '%s' for type '%s'", ident.toChars(), toChars());
1820 } 1820 }
1821 if (ident is Id.stringof_) 1821 if (ident is Id.stringof_)
1822 { 1822 {
1823 string s = e.toChars(); 1823 string s = e.toChars();
1824 e = new StringExp(e.loc, s, 'c'); 1824 e = new StringExp(e.loc, s, 'c');
1825 Scope sc2 = new Scope(); /// 1825 scope Scope sc2 = new Scope(); ///
1826 e = e.semantic(sc2); 1826 e = e.semantic(sc2);
1827 return e; 1827 return e;
1828 } 1828 }
1829 return getProperty(e.loc, ident); 1829 return getProperty(e.loc, ident);
1830 } 1830 }