Bug 3641 – alias shared T U does not work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-12-23T17:30:00Z
Last change time
2015-06-09T01:27:02Z
Keywords
rejects-valid
Assigned to
nobody
Creator
jason.james.house

Comments

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
Comment #2 by bugzilla — 2009-12-31T11:22:42Z
Fixed dmd 2.038