D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20352 - Error: cannot implicitly convert expression `__withSym` of type `A*` to `uint`
Summary: Error: cannot implicitly convert expression `__withSym` of type `A*` to `uint`
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2019-11-04 04:50 UTC by elpenguino+D
Modified: 2024-12-13 19:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elpenguino+D 2019-11-04 04:50:29 UTC
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 dlangBugzillaToGithub 2024-12-13 19:06:03 UTC
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