[Issue 8234] symbols used in CTFE affect the function literal type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 26 23:46:42 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8234
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-06-26 23:48:13 PDT ---
This is not a CTFE bug.
void foo()
{
immutable int x = 0;
auto k = *(){enum e=x;return e;};
}
bug.d(4): Error: can only * a pointer, not a 'immutable(int) delegate() pure
nothrow @safe'
Closure inference for 'is this a delegate literal' vs 'is this a function
literal' incorrectly checks enum initializers.
Similar to bug 6169.
--
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