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
/
fail228.d
blob
a4433bb893d761845ff3c94c430f867a7c052d5e
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail228.d(22): Error: undefined identifier `localVariable`
5
---
6
*/
7
8
//import core.stdc.stdio : printf;
9
10
int
ToTypeString
(
T
:
int
)()
11
{
12
return
1
;
13
}
14
15
int
ToTypeString
(
T
:
string
)()
16
{
17
return
2
;
18
}
19
20
void
main
()
21
{
22
auto
x
=
ToTypeString
!(
typeof
(
localVariable
))();
23
}