D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12208 - Recognize identical scope of nested structs
Summary: Recognize identical scope of nested structs
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 19:58 UTC by Vladimir Panteleev
Modified: 2024-12-13 18:17 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 Vladimir Panteleev 2014-02-19 19:58:17 UTC
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;
}
//////////////////////////////
Comment 1 dlangBugzillaToGithub 2024-12-13 18:17:13 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18777

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB