fixes #2473; cleanup of some tests
This commit is contained in:
parent
1a63e630ae
commit
5a003532d0
6 changed files with 28 additions and 54 deletions
16
tests/vm/tsimpleglobals.nim
Normal file
16
tests/vm/tsimpleglobals.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
msg: "abc xyz bb"
|
||||
"""
|
||||
|
||||
# bug #2473
|
||||
type
|
||||
Test = tuple[a,b: string]
|
||||
|
||||
static:
|
||||
var s:seq[Test] = @[(a:"a", b:"b")]
|
||||
s[0] = (a:"aa", b:"bb")
|
||||
|
||||
var x: Test
|
||||
x.a = "abc"
|
||||
x.b = "xyz"
|
||||
echo x.a, " ", x.b, " ", s[0].b
|
||||
Loading…
Add table
Add a link
Reference in a new issue