mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-23 15:11:40 +00:00
adds a test case
This commit is contained in:
13
tests/typerel/t25262.nim
Normal file
13
tests/typerel/t25262.nim
Normal 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]()
|
||||
Reference in New Issue
Block a user