Sha256: c251258d967223b341ebcf2d5bb0718e9a039b46232cb743865d9acd0c4bbe41

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

typedef int Error;
typedef int Multi;

enum UnionKey {
  ERROR,
  MULTI
};

union MyUnion switch (UnionKey type)
{
    case ERROR:
        Error error;
    case MULTI:
        Multi things<>;


};

union IntUnion switch (int type)
{
    case 0:
        Error error;
    case 1:
        Multi things<>;

};

typedef IntUnion IntUnion2;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xdrgen-0.1.1 spec/fixtures/generator/union.x
xdrgen-0.1.0 spec/fixtures/generator/union.x
xdrgen-0.0.1 spec/fixtures/generator/union.x