handle quoted routine symbols and non symbols expressions as before (#21740)

(cherry picked from commit 560fa9a1fe)
This commit is contained in:
ringabout
2023-04-28 16:25:31 +08:00
committed by narimiran
parent 19b3f8c0ea
commit 43ce0558b4
2 changed files with 2 additions and 2 deletions

View File

@@ -2880,7 +2880,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}, expectedType: PType
defer:
if isCompilerDebug():
echo ("<", c.config$n.info, n, ?.result.typ)
template directLiteral(typeKind: TTypeKind) =
if result.typ == nil:
if expectedType != nil and (

View File

@@ -139,7 +139,7 @@ block: # SameType
x2 = Tensor[A]()
x3 = Tensor[B]()
static:
static:
assert testTensorInt(x)
assert not testTensorInt(x1)
assert testTensorInt(x2)