fixes #3230
This commit is contained in:
parent
55e479657a
commit
d5c5fd425f
2 changed files with 17 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode =
|
||||||
mAppendStrStr, mAppendSeqElem, mSetLengthStr, mSetLengthSeq,
|
mAppendStrStr, mAppendSeqElem, mSetLengthStr, mSetLengthSeq,
|
||||||
mParseExprToAst, mParseStmtToAst, mExpandToAst, mTypeTrait, mDotDot,
|
mParseExprToAst, mParseStmtToAst, mExpandToAst, mTypeTrait, mDotDot,
|
||||||
mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym, mSpawn,
|
mNLen..mNError, mEqRef, mSlurp, mStaticExec, mNGenSym, mSpawn,
|
||||||
mParallel, mPlugin, mGetTypeInfo:
|
mParallel, mPlugin, mGetTypeInfo, mTypeOf:
|
||||||
discard
|
discard
|
||||||
of mEqProc:
|
of mEqProc:
|
||||||
result = newIntNodeT(ord(
|
result = newIntNodeT(ord(
|
||||||
|
|
|
||||||
16
tests/typerel/typeof_in_template.nim
Normal file
16
tests/typerel/typeof_in_template.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
discard """
|
||||||
|
output: '''@[a, c]'''
|
||||||
|
"""
|
||||||
|
|
||||||
|
# bug #3230
|
||||||
|
|
||||||
|
import sequtils
|
||||||
|
|
||||||
|
const
|
||||||
|
test_strings = ["a", "b", "c"]
|
||||||
|
|
||||||
|
proc is_doc(x: string): bool = x == "b"
|
||||||
|
|
||||||
|
let
|
||||||
|
tests = @test_strings.filter_it(not it.is_doc)
|
||||||
|
echo tests
|
||||||
Loading…
Add table
Add a link
Reference in a new issue