16 lines
501 B
Plaintext
16 lines
501 B
Plaintext
// Phase 3 (FFI-linkage) — postfix `extern` on a `#jni_class` aggregate, the
|
|
// new spelling of the legacy prefix `#foreign #jni_class` import. Parse-only
|
|
// on macOS (no JVM at runtime), mirroring 1412's foreign-class reference.
|
|
// View :: #jni_class("…") extern { … } == View :: #foreign #jni_class("…") { … }
|
|
|
|
#import "modules/std.sx";
|
|
|
|
View :: #jni_class("android/view/View") extern {
|
|
getId :: (self: *Self) -> i32;
|
|
}
|
|
|
|
main :: () -> i32 {
|
|
print("parse-only ok\n");
|
|
0
|
|
}
|