Open
Description
alias AliasSeq(TList...) = TList;
struct Foo {
AliasSeq!(float) fields;
alias this = fields;
}
Foo foo(){ return Foo();}
struct Bar { }
void func(Foo b){ }
// This must be a template for the error.
void func()(Bar b){ }
void call(){
goto L1;
func(foo());
L1:
}
// a.d(15): Error: `goto` skips declaration of variable `a.call.__tup2`
// goto L1;
// ^
// a.d(16): declared here
// func(foo());
// ^
There has to be a template function overload it fails to match and the struct must be the result of a function call.
Metadata
Metadata
Assignees
Labels
No labels