Since dmd 2.096.0: import `x.t` is used as a type
kdevel
kdevel at vogtner.de
Fri Apr 30 17:58:43 UTC 2021
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;
...
```
More information about the Digitalmars-d-learn
mailing list