https://d.puremagic.com/issues/show_bug.cgi?id=12094
Summary: typeof(null) should convert to reference types
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from yebblies <[email protected]> 2014-02-07 17:21:20 EST ---
void main()
{
auto n = null;
int *a;
int[int] b;
int[] c;
auto u = true ? null : a;
auto v = true ? null : b;
auto w = true ? null : c;
auto x = true ? n : a; // error
auto y = true ? n : b; // error
auto z = true ? n : c; // error
a = n;
b = n; // error
c = n;
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------