int integerValue; string stringValue; int[] intArrayValue; static assert(GenerateRefReader!("foo", integerValue) == "public static final @property ref auto foo() " ~ "@nogc nothrow @safe { return this.foo; }"); static assert(GenerateRefReader!("foo", stringValue) == "public static final @property ref auto foo() " ~ "@nogc nothrow @safe { return this.foo; }"); static assert(GenerateRefReader!("foo", intArrayValue) == "public static final @property ref auto foo() " ~ "@nogc nothrow @safe { return this.foo; }");