- objc.sx, objc_block.sx (from std/) + sdl3/opengl/raylib/stb/stb_truetype/ wasm vendor bindings (from modules/ root) -> modules/ffi/ - std/uikit.sx deleted: platform/uikit.sx already declares UIApplicationMain and imports objc; '#framework "UIKit"' cannot live in a file imported on macOS targets (unconditional link directive, UIKit is iOS-only), so the three iOS-only examples carry the 3-line glue inline. 1607/1608/1616 also un-rotted (dead ns_string -> 'xx "..."' Into conversions, callconv(.c) msgSend fn-ptrs) — all three build for ios-sim/ios again. - math/math.sx -> math/scalar.sx; one spelling '#import "modules/math"' everywhere (4 pinned IR snapshots regenerated: dir import adds Vec2/Mat4 to the type tables). - compiler.sx -> build.sx (imports, CLAUDE.md bundling table, specs.md). - testpkg/ + test_c.sx -> tests/fixtures/ (resolve CWD-relative from repo root, same as vendors/). - library-internal imports use full modules/... paths (std.sx tail, platform/bundle.sx, fixtures).
26 lines
825 B
Plaintext
26 lines
825 B
Plaintext
// Phase 3 step 3.0: keyword count must equal call-site arity (excluding
|
|
// self). `something_extra(x)` — name split gives ["something", "extra"]
|
|
// = 2 keywords; arity = 1. Compiler must diagnose at the call site.
|
|
//
|
|
// Pre-3.0: bails at lower.zig with the generic Phase 3/4 diagnostic
|
|
// (which subsumes this case). Once 3.0 lands, the diagnostic becomes a
|
|
// specific "keyword count mismatch" message.
|
|
#import "modules/std.sx";
|
|
#import "modules/build.sx";
|
|
|
|
SxProbeMismatch :: #foreign #objc_class("SxProbeMismatch") {
|
|
something_extra :: (self: *Self, x: s32) -> s32;
|
|
}
|
|
|
|
main :: () -> s32 {
|
|
inline if OS == .macos {
|
|
inst : *SxProbeMismatch = null;
|
|
n := inst.something_extra(7);
|
|
print("n = {}\n", n);
|
|
}
|
|
inline if OS != .macos {
|
|
print("skipped (not macos)\n");
|
|
}
|
|
0
|
|
}
|