[Issue 3231] Function declared to return a type with its same name doesn't compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 6 17:53:45 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3231
BCS <shro8822 at vandals.uidaho.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shro8822 at vandals.uidaho.edu
--- Comment #4 from BCS <shro8822 at vandals.uidaho.edu> 2009-08-06 17:53:44 PDT ---
I also think this is invalid.
As a work around:
class Bar
{
}
class Foo
{
.Bar Bar() // note '.' to start from global scope
{
return null;
}
}
void main()
{
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list