On Friday, 30 April 2021 at 17:58:43 UTC, kdevel wrote:
dmd since 2.096.0 with ``t.d``

```t.d
module t;

class t {
}
```

and ``x.d``

```x.d
module x;
import t;

void main ()
{
   t x = new t;
}
```

reports

    $ dmd -i x.d
    x.d(6): Error: import `x.t` is used as a type
    x.d(6): Error: import `x.t` is used as a type

Could not find this Change in https://dlang.org/changelog/2.096.0.html. Has this been "fixed" with some other issue?

Workaround:

```x.d
...
import t : t;
...
```

Likely a side effect of https://github.com/dlang/dmd/pull/12178 but
according to me the new behavior is correct.

Reply via email to