close #3784
This commit is contained in:
parent
92ee2ee4ce
commit
0149e418be
1 changed files with 20 additions and 0 deletions
20
tests/statictypes/t3784.nim
Normal file
20
tests/statictypes/t3784.nim
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
discard """
|
||||||
|
output: "T[1, 1]"
|
||||||
|
"""
|
||||||
|
|
||||||
|
# https://github.com/nim-lang/Nim/issues/3784
|
||||||
|
|
||||||
|
import typetraits
|
||||||
|
|
||||||
|
type
|
||||||
|
S[N: static[int]] = object
|
||||||
|
T[A,B: static[int]] = object
|
||||||
|
|
||||||
|
C = S[1]
|
||||||
|
|
||||||
|
var
|
||||||
|
x: T[1,1]
|
||||||
|
y: T[C.N, C.N]
|
||||||
|
|
||||||
|
echo y.type.name
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue