adds a test case

This commit is contained in:
ringabout
2026-02-27 19:25:06 +08:00
parent 7ff1c63a8a
commit 8cbbb94db4

13
tests/typerel/t25262.nim Normal file
View File

@@ -0,0 +1,13 @@
discard """
errormsg: "type mismatch"
output: '''
t25262.nim(13, 5) Error: type mismatch: got <>
but expected one of:
proc v[T: typedesc]()
expression: v[0]()
'''
"""
proc v[T: typedesc]() = discard
v[0]()