InvalidArgError records an invalid argument error. It is used by DSL functions that take dynamic arguments.
(expected string, actual any)
| 123 | // InvalidArgError records an invalid argument error. It is used by DSL |
| 124 | // functions that take dynamic arguments. |
| 125 | func InvalidArgError(expected string, actual any) { |
| 126 | ReportError("cannot use %#v (type %s) as type %s", actual, reflect.TypeOf(actual), expected) |
| 127 | } |
| 128 | |
| 129 | // TooFewArgError records a too few arguments error. It is used by DSL |
| 130 | // functions that take dynamic arguments. |
no test coverage detected