Comment #0 by jason.james.house — 2009-12-23T17:30:47Z
Sample code
========================
class foo{}
void main(){
alias shared foo bar; // results in error
//alias shared(foo) bar; // works
shared(foo) x = new bar();
}
========================
Result with dmd 2.037
(Bug report lists dmd 2.036 since 2.037 was not an option at the time)
$ dmd test.d
test.d(4): Error: cannot implicitly convert expression (new foo) of type test.foo to shared(foo)
Comment #1 by leandro.lucarella — 2009-12-25T10:01:25Z