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

Recognize identical scope of nested structs #18777

Open
dlangBugzillaToGithub opened this issue Feb 19, 2014 · 0 comments
Open

Recognize identical scope of nested structs #18777

dlangBugzillaToGithub opened this issue Feb 19, 2014 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Vladimir Panteleev (@CyberShadow) reported this on 2014-02-19T19:58:17Z

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

Description

Currently, this code doesn't compile, although I think it should:

//////////////////////////////
struct S1(alias a)
{
	struct S2(alias b)
	{
		void foo()
		{
			a = b;
		}
	}
}

struct Test
{
	int i, j;
	S1!i.S2!j s;
}
//////////////////////////////
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