You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type
X[A, B] =object
a: A
b: B
Y[A] = X[A, int]
templates(T: type X): X =T()
templatet[A, B](T: type X[A, B]): X[A, B] =T()
procworks1(): Y[int] =s(X[int, int])
procworks2(): Y[int] =t(X[int, int])
procworks3(): Y[int] =t(Y[int])
procbroken(): Y[int] =s(Y[int])
/home/arnetheduck/status/nim-beacon-chain/vendor/nim-eth/eth/keys/test.nim(16, 26) Error: type mismatch: got <type Y[system.int]>
but expected one of:
template s(T: type X): X
first type mismatch at position: 1
required type for T: type X
but expression 'Y[int]' is of type: type Y[system.int]
Nim Compiler Version 1.1.1 [Linux: amd64]
Compiled at 2020-03-29
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: 8c719fce54544c8d14ce7c0e4639c974c1748668
active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: