11 lines
276 B
Plaintext
11 lines
276 B
Plaintext
# Automatically generated; edit in Sphinx source code, not here.
|
|
module Test;
|
|
|
|
type Bar = unit(msg: string, mult: int8) {
|
|
x: int8 &convert=($$ * mult);
|
|
on %done { print "%s: %d" % (msg, self.x); }
|
|
};
|
|
|
|
public type Foo = unit {
|
|
y: Bar("My multiplied integer", 5);
|
|
}; |