Files
sx/examples/93-into-impl-helper.sx
2026-05-18 17:40:10 +03:00

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 };
}
}