mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
fixes #21281
(cherry picked from commit 74499e4561)
This commit is contained in:
13
tests/vm/t21281.nim
Normal file
13
tests/vm/t21281.nim
Normal file
@@ -0,0 +1,13 @@
|
||||
discard """
|
||||
nimout: '''
|
||||
3
|
||||
3
|
||||
'''
|
||||
"""
|
||||
|
||||
proc f(x: static[auto]) = # doesn't work
|
||||
static: echo x
|
||||
proc g[T](x: static[T]) = # works
|
||||
static: echo x
|
||||
f(3)
|
||||
g(3)
|
||||
Reference in New Issue
Block a user