mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
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()
|
||||
Reference in New Issue
Block a user