dmd/compiler/test/compilable/test324.d
2022-07-09 18:53:07 +02:00

24 lines
387 B
D

/* TEST_OUTPUT:
---
compilable/test324.d(17): Deprecation: function `test324.main.doStuff!((i)
{
return i;
}
).doStuff` function requires a dual-context, which is deprecated
compilable/test324.d(23): instantiated from here: `doStuff!((i)
{
return i;
}
)`
---
*/
struct Foo
{
void doStuff(alias fun)() {}
}
void main()
{
Foo foo;
foo.doStuff!( (i) { return i; })();
}