ttynilinstantiation.nim 159 B

12345678
  1. proc foo[T: proc](x: T) =
  2. # old error here:
  3. let y = x
  4. # invalid type: 'typeof(nil)' for let
  5. foo(nil) #[tt.Error
  6. ^ type mismatch: got <typeof(nil)>]#