repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail8217.d
blob
477ca63a9e8eccc4ee3c593f224b887d08060063
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail8217.d(22): Error: `this` for `foo` needs to be type `D` not type `fail8217.D.C`
5
---
6
*/
7
8
class
D
9
{
10
int
x
;
11
template
bar
()
12
{
13
int
foo
()
14
{
15
return
x
;
16
}
17
}
18
static class
C
19
{
20
int
foo
()
21
{
22
return
bar
!().
foo
();
23
}
24
}
25
}