module pind.samples.ja.property.property_3; import std.stdio; struct Foo { @property int a() const { return 42; } int b() const { // ← @propertyなしで定義 return 42; } } void main() { auto f = Foo(); writeln(typeof(f.a).stringof); writeln(typeof(f.b).stringof); }