Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: db6e6c9829
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.329 kB
//T compiles:yes
//T retval:42
struct S
{
int i;
int j;
long k;
int f() { return i + j; }
alias f this;
version (SDC) alias k this; // DMD doesn't yet implement multiple alias this declarations.
}
int foo(int i)
{
return i;
}
int main()
{
S s;
s.i = 21;
s.j = 21;
return foo(s);
}
Jump to Line
Something went wrong with that request. Please try again.