mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
This reverts commit b2c6db97f9.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
discard """
|
||||
output: '''
|
||||
(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
|
||||
(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
|
||||
(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
|
||||
(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
|
||||
'''
|
||||
"""
|
||||
|
||||
@@ -13,7 +13,7 @@ type
|
||||
|
||||
var
|
||||
a = M(v:[ V(v:[0.0,1.0]), V(v:[2.0,3.0]) ])
|
||||
b = M(v:[ V(v:[0.0,0.125]), V(v:[0.25,0.375]) ])
|
||||
b = M(v:[ V(v:[0.0,0.1]), V(v:[0.2,0.3]) ])
|
||||
|
||||
echo M(v: [V(v: [b.v[0].v[0] + a.v[0].v[0], b.v[0].v[1] + a.v[0].v[1]]),
|
||||
V(v: [b.v[1].v[0] + a.v[1].v[0], b.v[1].v[1] + a.v[1].v[1]])])
|
||||
|
||||
Reference in New Issue
Block a user