12345678910111213141516 |
- type
- Table[K, V] = object
- key: K
- val: V
- MyTable = distinct Table[string, int]
- MyTableRef = ref MyTable
- proc newTable[K, V](): ref Table[K, V] = discard
- proc newMyTable: MyTableRef =
- MyTableRef(newTable[string, int]()) # <--- error here
- discard newMyTable()
|