Files
sx/examples/1307-ffi-objc-expression-bodied-objc-method.sx
agra 9719432e79 refactor(ffi-linkage): Phase 9.3 — purge remaining 'foreign' from library/docs/example comments
Capital-Foreign + stale-identifier comment refs: library (Foreign Java types→Runtime,
foreign-class→runtime-class, foreign_class_map→runtime_class_map); docs/debugger
(foreign call→extern call); docs/fork-c ledger (foreign_class_map, protocol/foreign→
runtime-class); docs/inline-asm-design Deviation-6 obsolete #foreign-vs-extern design
RESOLVED to the landed extern/export reality; example comments (parseForeignClassDecl→
parseRuntimeClassDecl, checkForeignRefs→checkExternRefs, Foreign decls→Extern). Docs/
comments only — no build impact.
2026-06-15 11:03:29 +03:00

21 lines
575 B
Plaintext

// M1.0 (xfail) — '=>' expression-body form inside '#objc_class'
// member methods.
//
// Today: parseRuntimeClassDecl ([src/parser.zig:1262]) accepts ';'
// (declaration) or '{ ... }' (block body) but not '=>'. Trying
// '=>' surfaces 'expected ;' at the arrow.
//
// Next commit extends the member parser to accept the arrow
// form, mirroring the existing parseFnDecl ('=>') arm, and this
// snapshot flips from a parser error to '42\n'.
#import "modules/std.sx";
SxFoo :: #objc_class("SxFoo") {
greet :: (self: *Self) -> i32 => 42;
}
main :: () -> i32 {
0
}