twrongdefaultvalue2.nim 197 B

12345678
  1. # issue #22888
  2. proc dummy*[T: SomeNumber](a: T, b: T = 2.5): T = #[tt.Error
  3. ^ type mismatch: got <float64> but expected 'int']#
  4. result = a
  5. echo dummy(2)