main_dirty.nim 187 B

123456789101112131415
  1. import imported, strutils
  2. type
  3. TFoo = object
  4. x: int
  5. y: string
  6. proc main =
  7. var t1 = "text"
  8. var t2 = t1.toUpper
  9. var foo = TFoo(x: 10, y: "test")
  10. foo.
  11. echo(t1 +++ t2)