mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
16 lines
251 B
D
16 lines
251 B
D
module b20885;
|
|
|
|
struct S
|
|
{
|
|
alias P = void*;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
alias P = void*;
|
|
alias PP = void**;
|
|
PP[1] a = null;
|
|
if (const void** b = a[0]){} // OK
|
|
if (const P* b = a[0]){} // NG
|
|
if (const S.P* b = a[0]){} // NG
|
|
}
|