Skip to content

Segfault during compilation of an overloaded call #827

@mrzv

Description

@mrzv

The following code snippet makes the compiler segfault. If you can think of a simple workaround, please, let me know.

import tables

type
    TMyTable[T] = TTable[int,T]

proc `[]=`[T](m: TMyTable[T], k: int, v: T) =
    tables.`[]=`[int,T](m,k,v)

var m: TMyTable[int] = initTable[int,int]()
m[2] = 3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions