Unittest Absurdity

Steven Schveighoffer schveiguy at gmail.com
Fri Aug 5 15:34:45 UTC 2022


On 8/5/22 11:24 AM, Steven Schveighoffer wrote:
> On 8/4/22 10:27 PM, jfondren wrote:
>>      a.opOpAssign(b);
>>      b.opOpAssign(a);
> 
> oof, I expected this to include the template parameters! I believe it 
> normally does?

It does not! I'm genuinely shocked.

```d
void foo(string s, T)(T t) {}

void main()
{
    foo!"hi"(1);
}
```

outputs:

```d
void foo(string s, T)(T t)
{
}
void main()
{
	foo(1);
	return 0;
}
```

> This is a bug that should be filed.

Make that an enhancement request

-Steve


More information about the Digitalmars-d-learn mailing list