D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7683 - the attribute has not been correctly inferred in either the constructor or nested function.
Summary: the attribute has not been correctly inferred in either the constructor or ne...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-11 05:15 UTC by Koichi
Modified: 2014-01-05 00:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Koichi 2012-03-11 05:15:36 UTC
this code doesn't work!

----------
void main()
{
	foo(0).bar(0);
}

auto foo(T)(T n)
{
	struct FooInner
	{
	public:
		Bar bar(U)(U m)
		{
			return Bar(0);
		}
	}
	
	return FooInner();
}

struct Bar
{
	this(int n)
	{
	}
}
----------
Comment 1 Denis Shelomovskii 2014-01-05 00:23:23 UTC
The title is incorrect, it has nothing to do with attributes.
The error was because of some fixed IFTI bug.