(val super.Value)
| 54 | } |
| 55 | |
| 56 | func (c *casterIntN) Eval(val super.Value) super.Value { |
| 57 | v, ok := coerce.ToInt(val, c.typ) |
| 58 | if !ok { |
| 59 | return c.sctx.WrapError("cannot cast to "+sup.FormatType(c.typ), val) |
| 60 | } |
| 61 | return super.NewInt(c.typ, v) |
| 62 | } |
| 63 | |
| 64 | type casterUintN struct { |
| 65 | sctx *super.Context |
nothing calls this directly
no test coverage detected