mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Move dmd files into compiler/
This commit is contained in:
parent
20bd0cacbd
commit
6374bb87b7
4579 changed files with 4 additions and 4 deletions
37
compiler/test/compilable/fail260.d
Normal file
37
compiler/test/compilable/fail260.d
Normal file
|
@ -0,0 +1,37 @@
|
|||
// PERMUTE_ARGS:
|
||||
// REQUIRED_ARGS: -d
|
||||
|
||||
struct Static(uint width2, uint height2)
|
||||
{
|
||||
immutable width = width2;
|
||||
immutable height = height2;
|
||||
|
||||
static Static opCall()
|
||||
{
|
||||
Static ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
alias float E;
|
||||
|
||||
template MultReturn(alias M1, alias M2)
|
||||
{
|
||||
alias Static!(M2.width, M1.height) MultReturn;
|
||||
}
|
||||
|
||||
void opMultVectors(M2)(M2 b)
|
||||
{
|
||||
alias MultReturn!(Static, M2) ret_matrix;
|
||||
}
|
||||
}
|
||||
|
||||
void test()
|
||||
{
|
||||
alias Static!(4, 1) matrix_stat;
|
||||
static matrix_stat m4 = matrix_stat();
|
||||
|
||||
alias Static!(1, 4) matrix_stat2;
|
||||
static m6 = matrix_stat2();
|
||||
|
||||
m6.opMultVectors(m4);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue