iOS lock step keyboard + metal
This commit is contained in:
12
examples/93-into-impl-helper.sx
Normal file
12
examples/93-into-impl-helper.sx
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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 };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user