t23032.nim 286 B

1234567891011121314
  1. discard """
  2. action: "run"
  3. outputsub: "proc (a: A[system.float]): bool{.noSideEffect, gcsafe.}"
  4. """
  5. import issue_23032/deep_scope
  6. proc foo(a: A[float]):bool = true
  7. let p: proc = foo
  8. echo p.typeof
  9. doAssert p(A[float]()) == true
  10. doAssert compiles(doAssert p(A[int]()) == true) == false