mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
331 B
D
17 lines
331 B
D
// REQUIRED_ARGS: -de
|
|
|
|
struct Bla
|
|
{
|
|
deprecated("bla")
|
|
int get() { return 5; }
|
|
|
|
alias get this;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
Bla[] blaArray;
|
|
// ~= should not try to call `.get`, because there's no indication that
|
|
// `blaArray` has any kind of opAppendAssign related overload in the first place.
|
|
blaArray ~= Bla();
|
|
}
|