Bug 2130 – Qualifier does not apply to multiple typed definition

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-05-24T13:34:00Z
Last change time
2015-06-09T05:15:01Z
Assigned to
bugzilla
Creator
andrei

Comments

Comment #0 by andrei — 2008-05-24T13:34:36Z
This works: invariant a = 0, b = 1; This does not work: invariant size_t a = 0, int b = 1; It should work.
Comment #1 by bugzilla — 2008-06-15T20:15:26Z
This is by design. If there are multiple declarations separated by commas, the type can only appear on the first one, and the same type applies to all the declarations.