You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constA=struct {
fndoSomething(a: A, arg: i32) void {};
comptime {
vara: A= .{};
a.doSomething(4);
doSomething(.{}, 5); // opinion: transforming to method is uglier than direct.
(A{ }).doSomething(4); // preserve this form if it was already used
}
};
The text was updated successfully, but these errors were encountered:
Description
Prefer method call syntax instead of passing the namespace's type as the first parameter.
Examples
Examples of incorrect code for this rule
Examples of correct code for this rule
The text was updated successfully, but these errors were encountered: