Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created February 8, 2013 12:50
Show Gist options
  • Save jpf91/4738862 to your computer and use it in GitHub Desktop.
Save jpf91/4738862 to your computer and use it in GitHub Desktop.
struct S7965
{
}
auto f7965()()
{
int a;
class Result
{
S7965 s;
this(S7965 s_)
{
this.s = s_;
}
void g() { /*a = 42;*/ }
}
return new Result(S7965());
}
void test7965a()
{
f7965!()().g();
}
void main()
{
test7965a();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment