[Issue 2995] New: Incorrect conversion in c ? a : b
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 16 21:41:21 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2995
Summary: Incorrect conversion in c ? a : b
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
class A {}
void main()
{
immutable(A) b;
A c;
auto z = true ? b : c;
writeln(typeof(z).stringof);
}
writes Object, which is wrong in a number of ways. The common type of A and
immutable(A) is const(A).
--
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