Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail8217.d
blob: 477ca63a9e8eccc4ee3c593f224b887d08060063 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail8217.d(22): Error: `this` for `foo` needs to be type `D` not type `fail8217.D.C`
---
*/
class
D
{
int
x
;
template
bar
()
{
int
foo
()
{
return
x
;
}
}
static
class
C
{
int
foo
()
{
return
bar
!().
foo
();
}
}
}