Bug 1987 – Incorrect type infos when invariant/const are used as storage classes

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-12T04:10:00Z
Last change time
2015-06-09T01:14:37Z
Keywords
wrong-code
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2008-04-12T04:10:38Z
const does not work either ---- void main() { invariant int x; auto typeInfo = typeid(typeof(x)); assert (typeInfo == typeid(invariant int)); // Fails invariant int[] a; typeInfo = typeid(typeof(a)); assert (typeInfo == typeid(invariant int[])); // Fails } ----
Comment #1 by clugdbug — 2010-12-16T08:23:52Z
Fixed DMD2.041.