Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matsuri doesn't work with Nim 1.4.2 #3

Open
berquist opened this issue Dec 12, 2020 · 0 comments
Open

matsuri doesn't work with Nim 1.4.2 #3

berquist opened this issue Dec 12, 2020 · 0 comments

Comments

@berquist
Copy link

berquist commented Dec 12, 2020

From the figure example, using the latest version from GitHub:

/home/eric/development/speckledlemon/advent-of-code/2020/figures.nim(4, 9) template/generic instantiation of `variant` from here                                                                  
/home/eric/.nimble/pkgs/matsuri-0.3.0/matsuri.nim(199, 17) Error: type mismatch: got <untyped, int literal(0)>
but expected one of: 
proc `[]`(n: NimNode; i: BackwardsIndex): NimNode
  first type mismatch at position: 0
proc `[]`(n: NimNode; i: int): NimNode
  first type mismatch at position: 0
proc `[]`(s: string; i: BackwardsIndex): char
  first type mismatch at position: 0
proc `[]`[I: Ordinal; T](a: T; i: I): T
  first type mismatch at position: 0
proc `[]`[Idx, T, U, V](a: array[Idx, T]; x: HSlice[U, V]): seq[T]
  first type mismatch at position: 0
proc `[]`[Idx, T](a: array[Idx, T]; i: BackwardsIndex): T
  first type mismatch at position: 0
proc `[]`[Idx, T](a: var array[Idx, T]; i: BackwardsIndex): var T
  first type mismatch at position: 0
proc `[]`[T, U, V](s: openArray[T]; x: HSlice[U, V]): seq[T]
  first type mismatch at position: 0
proc `[]`[T, U](n: NimNode; x: HSlice[T, U]): seq[NimNode]
  first type mismatch at position: 0
proc `[]`[T, U](s: string; x: HSlice[T, U]): string
  first type mismatch at position: 0
proc `[]`[T](s: openArray[T]; i: BackwardsIndex): T
  first type mismatch at position: 0
proc `[]`[T](s: var openArray[T]; i: BackwardsIndex): var T
  first type mismatch at position: 0
template `[]`(s: string; i: int): char
  first type mismatch at position: 0

expression: `[]`(right_13261071, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant