13 lines
271 B
Plaintext
13 lines
271 B
Plaintext
# Automatically generated; edit in Sphinx source code, not here.
|
|
module Test;
|
|
|
|
public type Foo = unit {
|
|
x: bytes &size=1;
|
|
switch ( self.x ) {
|
|
b"A" -> a8: int8;
|
|
b"B" -> a16: int16;
|
|
b"C" -> a32: int32;
|
|
};
|
|
|
|
on %done { print self; }
|
|
}; |