Guest User

Untitled

a guest
Sep 10th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.24 KB | None | 0 0
  1. type Datum {. acyclic .} = object
  2.   field: ref array[int, Datum]
  3.  
  4. proc test(arr: ref array[int, Datum]): Datum =
  5.   Datum(field: arr)
  6.  
  7. # minimal.nim(5, 16) Error: type mismatch: got (ref array[int, Datum]) but expected 'ref array[int, Datum]'
Advertisement
Add Comment
Please, Sign In to add comment