mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
handle quoted routine symbols and non symbols expressions as before (#21740)
(cherry picked from commit 560fa9a1fe)
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -139,7 +139,7 @@ block: # SameType
|
||||
x2 = Tensor[A]()
|
||||
x3 = Tensor[B]()
|
||||
|
||||
static:
|
||||
static:
|
||||
assert testTensorInt(x)
|
||||
assert not testTensorInt(x1)
|
||||
assert testTensorInt(x2)
|
||||
|
||||
Reference in New Issue
Block a user