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