Bug 11894 – Union members don't appear in intellisense list
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-01-10T07:27:00Z
Last change time
2014-04-12T10:09:58Z
Assigned to
nobody
Creator
turkeyman
Comments
Comment #0 by turkeyman — 2014-01-10T07:27:26Z
Here's a struct:
struct MIDIEvent
{
struct Text
{
string buffer;
}
struct Tempo
{
float BPM;
int microsecondsPerBeat;
}
uint tick;
uint delta;
uint type;
uint subType;
union
{
Text text;
Tempo tempo;
}
}
The int members like tick/delta/etc all appear in the intellisense list.
The struct members in the union text/tempo do not appear, and refuse to auto-complete.