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).
https://nim-lang.org
Other
1 stars 0 forks source link

arc bug #28

Closed ringabout closed 2 years ago

ringabout commented 2 years ago
type
  Data = ref object
    id: int
proc main =
  var x = Data(id: 99)
  var y = x
  x[] = Data()[]
  echo y[]
main()