mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-11 22:08:54 +00:00
close #3784
This commit is contained in:
committed by
Andreas Rumpf
parent
92ee2ee4ce
commit
0149e418be
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
|
||||
|
||||
Reference in New Issue
Block a user