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.
21 lines
575 B
Plaintext
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
|
|
}
|