mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Cache TypeIdExp::semantic
This commit is contained in:
parent
d8c0e79bfb
commit
bfae7828a9
2 changed files with 6 additions and 3 deletions
|
@ -7130,6 +7130,11 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
|
|||
{
|
||||
printf("TypeidExp::semantic() %s\n", exp.toChars());
|
||||
}
|
||||
if (exp.type)
|
||||
{
|
||||
result = exp;
|
||||
return;
|
||||
}
|
||||
Type ta = isType(exp.obj);
|
||||
Expression ea = isExpression(exp.obj);
|
||||
Dsymbol sa = isDsymbol(exp.obj);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
// https://issues.dlang.org/show_bug.cgi?id=19227
|
||||
/* TEST_OUTPUT:
|
||||
---
|
||||
compilable/test19227.d(18): Deprecation: use of complex type `cfloat` is deprecated, use `std.complex.Complex!(float)` instead
|
||||
Deprecation: use of complex type `const(cfloat)` is deprecated, use `std.complex.Complex!(float)` instead
|
||||
Deprecation: use of complex type `const(cfloat)` is deprecated, use `std.complex.Complex!(float)` instead
|
||||
compilable/test19227.d(16): Deprecation: use of complex type `cfloat` is deprecated, use `std.complex.Complex!(float)` instead
|
||||
Deprecation: use of complex type `const(cfloat)` is deprecated, use `std.complex.Complex!(float)` instead
|
||||
---
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue