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