1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//@ [lang]
//@ path = 'gen/interface/test_/records/toTest/stub.mbt'
///|
pub fn multiple_results() -> (Byte, UInt) {
(4, 5)
}
///|
pub fn swap_tuple(a : (Byte, UInt)) -> (UInt, Byte) {
(a.1, a.0)
}
///|
pub fn roundtrip_flags1(a : F1) -> F1 {
a
}
///|
pub fn roundtrip_flags2(a : F2) -> F2 {
a
}
///|
pub fn roundtrip_flags3(
a : Flag8,
b : Flag16,
c : Flag32,
) -> (Flag8, Flag16, Flag32) {
(a, b, c)
}
///|
pub fn roundtrip_record1(a : R1) -> R1 {
a
}
///|
pub fn tuple1(a : Byte) -> Byte {
a
}