add test case for #7839 (#22006)

This commit is contained in:
Bung
2023-06-05 16:30:08 +08:00
committed by GitHub
parent 1edae67efd
commit c7c3362cc8

9
tests/generics/t7839.nim Normal file
View File

@@ -0,0 +1,9 @@
type A[I: SomeOrdinal, E] = tuple # same for object
length: int
doAssert A.sizeof == sizeof(int) # works without the following proc
proc newA*[I: SomeOrdinal, E](): A[I, E] = # works without `SomeOrdinal`
discard
discard newA[uint8, int]()