adds more test cases

This commit is contained in:
ringabout
2026-08-05 21:55:45 +08:00
parent 52b9b1c5ca
commit f24b316f13
2 changed files with 14 additions and 1 deletions

12
tests/generics/t21601.nim Normal file
View File

@@ -0,0 +1,12 @@
discard """
errormsg: "'typedesc' is not a concrete type"
line: 10
"""
# issue #21601
type Person = object
type Builder* = ref object of RootObj
class*: typedesc
echo Builder(class: Person).repr

View File

@@ -1,8 +1,9 @@
discard """
errormsg: "'array[0..0, typedesc[R[system.int]]]' is not a concrete type"
line: 7
line: 8
"""
# issue #24848
type R[C] = ref object
b: C