mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
* fixes #20900; Calling template through from generic function across module fails to build * sanother way
14 lines
277 B
Nim
14 lines
277 B
Nim
# bug #3770
|
|
import m3770
|
|
|
|
doAssert $jjj() == "(hidden: 15)" # works
|
|
|
|
proc someGeneric(_: type) =
|
|
doAssert $jjj() == "(hidden: 15)" # fails: "Error: the field 'hidden' is not accessible."
|
|
|
|
someGeneric(int)
|
|
|
|
# bug #20900
|
|
proc c(y: int | int, w: Opt = Opt.none) = discard
|
|
c(0)
|