Bug 9424 – is() returns false for int

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2013-01-29T08:06:00Z
Last change time
2013-04-29T07:25:18Z
Assigned to
nobody
Creator
maximzms

Comments

Comment #0 by maximzms — 2013-01-29T08:06:55Z
DMD from both v2.060 and git head report "int false" on the following file: -------------------- struct Slice(T) { this(SourceType)(SourceType source) { pragma(msg, SourceType.ElementType, " ", is(SourceType.ElementType)); } } struct Array(T) { alias T ElementType; auto constructSlice(Array* source) { return Slice!(T)(source); } } alias Array!(int) A; void main() { } -------------------- Attempt to use SourceType.ElementType inside Slice.this outside pragma statement leads to compilation errors.
Comment #1 by maximzms — 2013-04-29T07:25:18Z