mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
327 B
D
23 lines
327 B
D
module ice21696;
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=21696
|
|
|
|
double[1][1] func(double[1][1] stuff = [[1.0]])
|
|
{
|
|
bool myFunc()
|
|
{
|
|
if (stuff[])
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
if (!myFunc())
|
|
assert(false);
|
|
|
|
return stuff;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
return func() != [[1.0]];
|
|
}
|