mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-06 07:38:24 +00:00
fixes #25642
This commit is contained in:
@@ -2234,6 +2234,9 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
||||
result = semAnyRef(c, n, tyPtr, prev)
|
||||
elif op.id == ord(wRef):
|
||||
result = semAnyRef(c, n, tyRef, prev)
|
||||
elif op.id == ord(wStatic):
|
||||
checkSonsLen(n, 2, c.config)
|
||||
result = semStaticType(c, n[1], prev)
|
||||
elif op.id == ord(wType):
|
||||
checkSonsLen(n, 2, c.config)
|
||||
result = semTypeOf(c, n[1], prev)
|
||||
|
||||
@@ -219,3 +219,6 @@ block: # bug #19531
|
||||
x.cb()
|
||||
y.cb()
|
||||
|
||||
|
||||
block:
|
||||
proc r(_: typedesc, _: static uint | static int) = discard; r(uint, 0)
|
||||
|
||||
Reference in New Issue
Block a user