mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 20:14:44 +00:00
(cherry picked from commit 84fab7f39b)
This commit is contained in:
19
tests/alias/t19349.nim
Normal file
19
tests/alias/t19349.nim
Normal file
@@ -0,0 +1,19 @@
|
||||
discard """
|
||||
action: "compile"
|
||||
"""
|
||||
|
||||
type
|
||||
Vec3[T: SomeNumber] = object
|
||||
arr: array[3, T]
|
||||
|
||||
var
|
||||
cfloatArr: array[3, array[3, cfloat]]
|
||||
cfloatSeq = newSeq[Vec3[cfloat]]()
|
||||
for row in cfloatArr:
|
||||
cfloatSeq.add(Vec3[float32](arr: [row[0], row[1], row[2]]))
|
||||
|
||||
var
|
||||
cuintArr: array[3, array[3, cuint]]
|
||||
cuintSeq = newSeq[Vec3[cuint]]()
|
||||
for row in cuintArr:
|
||||
cuintSeq.add(Vec3[uint32](arr: [row[0], row[1], row[2]]))
|
||||
Reference in New Issue
Block a user