[Issue 14430] Null parameter is detected as non-null.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 9 11:29:25 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14430
--- Comment #3 from ag0aep6g at gmail.com ---
(In reply to ag0aep6g from comment #2)
> void setCookie(long x = 1L << 32L, string y = null){
> assert(b.ptr is null);
Woops, b.ptr should be y.ptr of course.
Full proper test case:
----
void setCookie(long x = 1L << 32L, string y = null){
assert(y.ptr is null);
}
void main(){
setCookie();
}
----
--
More information about the Digitalmars-d-bugs
mailing list