Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot implicitly convert expression __withSym of type A* to uint #19636

Open
dlangBugzillaToGithub opened this issue Nov 4, 2019 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

elpenguino+D reported this on 2019-11-04T04:50:29Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=20352

Description

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 ()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant