This code:
import std.variant;
void main() {
(Variant()).get!(typeof(() => i));
}
Gives this error:
foo.d(4): Error: undefined identifier i
Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c'
abnormal program termination
Comment #1 by k.hara.pg — 2012-08-04T11:51:56Z
Reduced test case:
struct Variant
{
@property T get(T)()
{
struct X {} // necessary
}
}
void main() {
(Variant()).get!(typeof(() => i));
}
Comment #2 by yebblies — 2013-11-24T21:20:35Z
No longer ICEs
Comment #3 by github-bugzilla — 2014-06-08T02:42:30Z