13 lines
303 B
Plaintext
13 lines
303 B
Plaintext
// Helper for 93-into-import-scope.sx: declares Wrap + an impl Into for it.
|
|
// No paired tests/expected file — not executed standalone by the runner.
|
|
|
|
#import "modules/std.sx";
|
|
|
|
Wrap :: struct { v: s64 = 0; }
|
|
|
|
impl Into(Wrap) for s64 {
|
|
convert :: (self: s64) -> Wrap {
|
|
.{ v = self * 10 };
|
|
}
|
|
}
|