Today's parser doesn't recognize #jni_class as a hash directive after `::`, so it falls through to expression parsing and errors at the `#` token. Step 2.1 extends parseConstBinding to accept the directive (opaque on empty body) and re-snapshots this file to green.
19 lines
622 B
Plaintext
19 lines
622 B
Plaintext
// Phase 2 step 2.0 (PLAN-FFI.md): xfail parser test for the
|
|
// type-introducer `Foo :: #jni_class("java/path/Foo") { }` directive.
|
|
//
|
|
// Today's parser doesn't recognize `#jni_class` as a known hash
|
|
// directive after `::`, so it falls through to expression parsing
|
|
// and fails at the `#` token. Step 2.1 (next commit) extends
|
|
// `parseConstBinding` to accept the directive, treat an empty body
|
|
// as an opaque forward declaration, and re-snapshots this file to
|
|
// capture the green behavior.
|
|
|
|
#import "modules/std.sx";
|
|
|
|
Foo :: #jni_class("java/path/Foo") { }
|
|
|
|
main :: () -> s32 {
|
|
print("parse-only ok\n");
|
|
0;
|
|
}
|