mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-12 12:19:40 +00:00
15 lines
403 B
Nim
15 lines
403 B
Nim
discard """
|
|
output: '''ok'''
|
|
"""
|
|
|
|
# Regression test: a `typed` macro in an imported module splices param symbols
|
|
# out of an imported proc type into a freshly semchecked proc type. Under
|
|
# `nim ic` those param symbols are loaded `Sealed` from the NIF cache; reusing
|
|
# them in `newSymG`/`semProcTypeNode` used to fail `ast.nim` `s.state != Sealed`.
|
|
|
|
import mtraitparam
|
|
|
|
makeVTable(ChunkTrait)
|
|
|
|
echo "ok"
|