[Issue 20352] New: Error: cannot implicitly convert expression `__withSym` of type `A*` to `uint`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 4 04:50:29 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20352
Issue ID: 20352
Summary: Error: cannot implicitly convert expression
`__withSym` of type `A*` to `uint`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: elpenguino+D at gmail.com
a.d:
```
module a;
struct A {
import b : B;
}
```
b.d:
```
module b;
struct B {
uint t;
}
void f() {
import a : A;
with (A.init) {
auto f = B();
}
}
```
Also try a struct B with zero fields ("Error: more initializers than fields")
and a struct B with an A* field ("Error: struct B does not overload ()")
--
More information about the Digitalmars-d-bugs
mailing list