ringabout / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

Home Page:https://nim-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arc bug

ringabout opened this issue · comments

type
  Data = ref object
    id: int
proc main =
  var x = Data(id: 99)
  var y = x
  x[] = Data()[]
  echo y[]
main()