mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
This commit is contained in:
parent
bb25d82a3b
commit
1b34fea478
2 changed files with 24 additions and 3 deletions
11
compiler/test/compilable/test21179.d
Normal file
11
compiler/test/compilable/test21179.d
Normal file
|
@ -0,0 +1,11 @@
|
|||
// https://github.com/dlang/dmd/issues/21179
|
||||
|
||||
void bigEndianToNative(ubyte[2] a) {}
|
||||
|
||||
void main()
|
||||
{
|
||||
ubyte[] arr;
|
||||
const ubyte[2] bytes;
|
||||
bigEndianToNative(bytes);
|
||||
auto b = cast(const ubyte[2][]) arr;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue