Bug 20352 – Error: cannot implicitly convert expression `__withSym` of type `A*` to `uint`

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-04T04:50:29Z
Last change time
2024-12-13T19:06:03Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
elpenguino+D
Moved to GitHub: dmd#19636 →

Comments

Comment #0 by elpenguino+D — 2019-11-04T04:50:29Z
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 ()")
Comment #1 by robert.schadek — 2024-12-13T19:06:03Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19636 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB