(sctx *super.Context, msg Any, val Any)
| 49 | } |
| 50 | |
| 51 | func NewVecWrappedError(sctx *super.Context, msg Any, val Any) *Error { |
| 52 | recType := sctx.MustLookupTypeRecord([]super.Field{ |
| 53 | {Name: "message", Type: msg.Type()}, |
| 54 | {Name: "on", Type: val.Type()}, |
| 55 | }) |
| 56 | rval := NewRecord(recType, []Any{msg, val}, val.Len()) |
| 57 | return &Error{Typ: sctx.LookupTypeError(recType), Vals: rval} |
| 58 | } |
no test coverage detected