Skip to content

Commit

Permalink
fixup for pull #1301 and #1309
Browse files Browse the repository at this point in the history
By fixing bug 9069 and 9035, T.init always returns rvalue and ref cannot receive it.
  • Loading branch information
9rnsr committed Dec 4, 2012
1 parent 3b06132 commit acf8a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runnable/nested.d
Expand Up @@ -2074,7 +2074,7 @@ void test9035()
f(Nested.init); // fails, lvalue

assert(Nested.init.j == 0);
(ref n) { n.j = 5; }(Nested.init);
//(ref n) { n.j = 5; }(Nested.init);
assert(Nested.init.j == 0); // fails, j is 5
}

Expand Down

0 comments on commit acf8a89

Please sign in to comment.