(t *testing.T)
| 553 | } |
| 554 | |
| 555 | func TestFunctionAddDuplicateOverloads(t *testing.T) { |
| 556 | _, err := NewFunction("max", |
| 557 | Overload("max_int", []*types.Type{types.IntType}, types.IntType), |
| 558 | Overload("max_int", []*types.Type{types.IntType}, types.IntType), |
| 559 | ) |
| 560 | if err != nil { |
| 561 | t.Fatalf("NewFunction() with duplicate overload signature failed: %v", err) |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | func TestFunctionAddDuplicateOverloadsPreservesBinding(t *testing.T) { |
| 566 | f, err := NewFunction("max", |
nothing calls this directly
no test coverage detected