nim-lang / nimsuggest

idetools for the nim language
MIT License
42 stars 9 forks source link

one more crash due to typing error, no generics involved, low priority #106

Closed StefanSalewski closed 5 years ago

StefanSalewski commented 5 years ago
const none = 0

type

  DelaunayTriangulation = object
    i: int
    error: int

  PointList = seq[int]

  Vertex = object
    p: float

proc removeWorkingPoints*(this: var DelaunayTriangulation; polygon: PointList) =
  var processedEdges: hashSet[Edge]
  if this.error != none:
    return
  var verts: seq[Vertex] = this.gatherWorkingVerts(polygon)
nimsuggest --stdin t.nim

chk t.nim:1:1

chk skUnknown       Error   /tmp/hhh/t.nim  15  6   "internal error: assignment requested for type: Error Type" 0

Problem seems to be lowr case hashSet.

Araq commented 5 years ago

This internal error was removed so I think it's ok now. Reopen if still a problem.