http://d.puremagic.com/issues/show_bug.cgi?id=8285
--- Comment #1 from Max Samukha <samu...@voliacable.com> 2012-07-02 23:33:55 PDT --- Test case 1: string foo() { string s = "ab"; return s[0 .. $]; } template T2(string s) { } template T1() { enum s = foo(); alias T2!(s) t2; } int bar() { alias T1!() t1; return 0; } int baz(int x) { return 0; } static assert(baz(bar()) == 0); void main() { } Error: expression "ab"[0u..2u] is not a valid template value argument Test case 2: string bar() { string s = "ab"; return s[0..$]; } template T1() { enum T1 = bar()[0..$]; // error } string baz() { return T1!(); } string foo(string s) { return s; } static assert(foo(baz()) == "ab"); void main() { } Error: variable __dollar cannot be read at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------