mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-12 04:09:34 +00:00
13 lines
474 B
Nim
13 lines
474 B
Nim
discard """
|
|
output: '''200'''
|
|
"""
|
|
|
|
# Regression test for the `(offer …)` generic-instance sharing across the NIF
|
|
# boundary. A generic loaded from a NIF whose body uses a type-bound op on a
|
|
# CONCRETE type (here getOrDefault on Table[MultiCodec,int]) must be reused, not
|
|
# re-instantiated in the consumer's scope which lacks the type's `==`. Before the
|
|
# fix this failed under `nim ic` with `hashcommon.nim type mismatch ... MultiCodec`.
|
|
|
|
import mgofpid
|
|
echo callDigest()
|