[Issue 6870] New: type qualifiers behave inconsistently in combination with typeof
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 1 03:46:42 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6870
Summary: type qualifiers behave inconsistently in combination
with typeof
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2011-11-01 03:45:28 PDT ---
tested with DMD 2.056
void main(){
shared(int) x;
static assert(is(typeof(x) == shared(int))); // pass
const(typeof(x)) y;
const(shared(int)) z;
static assert(is(typeof(y) == typeof(z))); // fail!
}
The static assertion should pass.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list