tsimpleglobals.nim 232 B

1234567891011121314151617
  1. discard """
  2. msg: "abc xyz bb"
  3. """
  4. # bug #2473
  5. type
  6. Test = tuple[a,b: string]
  7. static:
  8. var s:seq[Test] = @[(a:"a", b:"b")]
  9. s[0] = (a:"aa", b:"bb")
  10. var x: Test
  11. x.a = "abc"
  12. x.b = "xyz"
  13. echo x.a, " ", x.b, " ", s[0].b