You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code, calls to f2 are all rejected. That is a bit weird.
```import std;struct S{ uint a; uint b;}void f1(uint a, uint b){}void f2(Tuple!(uint, uint) a){}void main(){ S s; uint[2] a; f1(s.tupleof); // OK f1(a.tupleof); // OK f2(s.tupleof); // NG f2(a.tupleof); // NG} ```
The reason for that is obviously that D does not do implict construction. In case D got first class citizen tuples this would have to work.
The text was updated successfully, but these errors were encountered:
b2.temp reported this on 2024-11-27T04:40:10Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=24886
CC List
Description
The text was updated successfully, but these errors were encountered: