// Copyright 2019 The Fuchsia Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
library test.fidlcodec.examples; | |
closed protocol FidlCodecXUnion { | |
strict SendAfterMigration(struct { | |
u NowAsXUnion; | |
i int32; | |
}); | |
}; | |
type NowAsXUnion = flexible union { | |
1: variant_u8 uint8; | |
2: variant_u16 uint16; | |
}; | |
type OriginalUnion = strict union { | |
1: variant_u8 uint8; | |
2: variant_u16 uint16; | |
}; |