Nim/tests/statictypes/t9255.nim
ringabout 5602183234
'lock levels' are deprecated, now a noop (#20539)
* 'lock levels' are deprecated, now a noop

* fixes tests
2022-10-11 09:17:09 +02:00

13 lines
225 B
Nim

discard """
errormsg: '''
type mismatch: got <proc (a0: int): string{.noSideEffect, gcsafe.}>
'''
line: 13
"""
macro fun(a: static float): untyped =
discard
when true:
proc bar(a0: int): string = discard
fun(bar)