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
/
test22680.d
blob
85e653e91eafceb67d20d1c880f236bb1f6ebc7d
1
/* REQUIRED_ARGS: -preview=dip1000
2
TEST_OUTPUT:
3
---
4
fail_compilation/test22680.d(104): Error: scope variable `this` assigned to global variable `c`
5
---
6
*/
7
8
// https://issues.dlang.org/show_bug.cgi?id=22680
9
10
#line
100
11
12
C c
;
13
class
C
{
14
~
this
()
@safe
{
15
c
=
this
;
16
}
17
}