mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-14 02:54:59 +00:00
adds more test cases
This commit is contained in:
12
tests/generics/t21601.nim
Normal file
12
tests/generics/t21601.nim
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user