(from super.Value, to super.Type)
| 82 | } |
| 83 | |
| 84 | func (c *cast) error(from super.Value, to super.Type) (super.Value, bool) { |
| 85 | return c.sctx.WrapError("cannot cast to "+sup.FormatType(to), from), false |
| 86 | } |
| 87 | |
| 88 | func (c *cast) toRecord(from super.Value, to *super.TypeRecord) (super.Value, bool) { |
| 89 | fromRecType := super.TypeRecordOf(from.Type()) |
no test coverage detected