mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

Lowerings to runtime hooks can be made from deprecated contexts, which results in incorrect deprecation messages of the deprecated context calling an undeprecated hook. Since hooks aren't going to be deprecated, this check may be disabled. Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
11 lines
142 B
D
11 lines
142 B
D
// https://issues.dlang.org/show_bug.cgi?id=23965
|
|
// REQUIRED_ARGS: -de
|
|
deprecated:
|
|
|
|
struct S {}
|
|
|
|
void fun()
|
|
{
|
|
S[] arr;
|
|
arr ~= S();
|
|
}
|