blob: 10407bdef8ae0df92e61da0ca07451d7185bd414 [file] [log] [blame]
// REQUIRED_ARGS: -o-
// EXTRA_FILES: imports/a13226.d
// PERMUTE_ARGS: -version=bug
import imports.a13226;
class C
{
// class C member m is not accessible
version(bug) mixin(t!(typeof(this), "f")); else {}
version(bug) mixin(u!(typeof(this), "v")); else {}
void f() {}
int v;
// here is ok
version(bug) {} else mixin(t!(typeof(this), "f"));
version(bug) {} else mixin(u!(typeof(this), "v"));
}
struct S
{
// struct S member m is not accessible
version(bug) mixin(t!(typeof(this), "f")); else {}
version(bug) mixin(u!(typeof(this), "v")); else {}
void f() {}
int v;
// here is ok
version(bug) {} else mixin(t!(typeof(this), "f"));
version(bug) {} else mixin(u!(typeof(this), "v"));
}