Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test19936.d

raw
1 // REQUIRED_ARGS: -de
2
3 struct Bla
4 {
5 deprecated("bla")
6 int get() { return 5; }
7
8 alias get this;
9 }
10
11 void main()
12 {
13 Bla[] blaArray;
14 // ~= should not try to call `.get`, because there's no indication that
15 // `blaArray` has any kind of opAppendAssign related overload in the first place.
16 blaArray ~= Bla();
17 }