Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Datum {. acyclic .} = object
- field: ref array[int, Datum]
- proc test(arr: ref array[int, Datum]): Datum =
- Datum(field: arr)
- # 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