Files
sx/examples/1166-diagnostics-ufcs-not-opted-in.sx

12 lines
269 B
Plaintext

// A dot-call on a PLAIN free function (no `ufcs` marker, no alias) is
// rejected with a tailored help: direct call, pipe, or declare it ufcs.
#import "modules/std.sx";
bump :: (x: s64) -> s64 { x + 1 }
main :: () {
f : s64 = 40;
print("{}\n", f.bump());
}