test252

Undocumented in source.
immutable
auto test252 = q{--- test252.vx // @static methods struct S { @static u64 structVar = 50; @static u64 incAndReturnStatic() { ++structVar; return structVar; } } // through static method u64 incAndReturn1() { return S.incAndReturnStatic(); } // through static method via instance u64 incAndReturn2() { S s; return s.incAndReturnStatic(); } // check that access to non-static members from static method is forbidden };

Meta