Thread overview
[Issue 11986] IFTI type deduction / implicit conversion does not work for null literal
Dec 17, 2022
Iain Buclaw
Aug 26, 2023
Nick Treleaven
Nov 11
basile-z
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11986

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
August 26, 2023
https://issues.dlang.org/show_bug.cgi?id=11986

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #1 from Nick Treleaven <nick@geany.org> ---
Still happens with recent git.

--
November 11
https://issues.dlang.org/show_bug.cgi?id=11986

--- Comment #2 from basile-z <b2.temp@gmx.com> ---
The bug is much more specific than suggested by the summary.

1. it is limited to classes because the following works

```
struct S(T){}

void v(T)(S!T* a, S!T* b) {}

void main()
{
    S!int* a;
    v(a,null);
}
```

2. it limited to classes templates because the following works

```
class S{}

void v(T)(T a, T b) {}

void main()
{
    S a;
    v(a,null);
}
```

--