parent
87ffff96d2
commit
af1e941872
3 changed files with 22 additions and 8 deletions
10
tests/cpp/treturn_array.nim
Normal file
10
tests/cpp/treturn_array.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# bug #2259
|
||||
type Mat4f* = array[0..15, float]
|
||||
|
||||
proc get_rot_mat*(): Mat4f = discard
|
||||
var mat: Mat4f = get_rot_mat()
|
||||
|
||||
# bug #1389
|
||||
proc calcSizes(): array[2, int] = discard
|
||||
let sizes: array[2, int] = calcSizes()
|
||||
Loading…
Add table
Add a link
Reference in a new issue