Summary: alias shared T U does not work
           Product: D
           Version: 2.036
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Jason House <> 2009-12-23 
17:30:47 PST ---
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 to shared(foo)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to