LYR-PAR0003
a member name or a compile-time form is incomplete
A . or ?. is followed by no member name (or by a number that is no tuple position), or the parts of a compile-time form are missing: the parentheses of comptime if or comptime for in an initializer, the ] of e.[f], the field and = of a with.
Explanation
After . and ?. stands the name of a member, or the position of a tuple element, t.0. The compile-time forms have fixed parts: comptime if (c) a else b, e.[f], p with { x = 1 }.
Write the member's name after the dot, or complete the form.
Wrong
fn main(): void {
let s = "abc";
let n = s.;
}
Right
fn main(): void {
let s = "abc";
let _ = s.length;
}