t3770.nim 277 B

1234567891011121314
  1. # bug #3770
  2. import m3770
  3. doAssert $jjj() == "(hidden: 15)" # works
  4. proc someGeneric(_: type) =
  5. doAssert $jjj() == "(hidden: 15)" # fails: "Error: the field 'hidden' is not accessible."
  6. someGeneric(int)
  7. # bug #20900
  8. proc c(y: int | int, w: Opt = Opt.none) = discard
  9. c(0)