mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
fixes #3230
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user