[Issue 7644] [tdpl] receive( (OwnerTerminated) {} ); fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 4 10:57:42 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7644


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2012-03-04 10:57:36 PST ---
With:

  class Foo {}
  auto a = (Foo) {}; // error

I get with 2.058 and 2.059:

  Error: cannot infer type from ambiguous function literal __lambda2

That's different from what you say you're getting. It's also correct, as the
type of parameter Foo cannot be inferred.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list