(loc ast.Node, typ super.Type)
| 655 | } |
| 656 | |
| 657 | func (t *translator) stringy(loc ast.Node, typ super.Type) { |
| 658 | if !hasString(typ) { |
| 659 | t.error(loc, errors.New("expected type string")) |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | func (t *translator) isIndexOfThis(lhs, rhs sem.Expr) *sem.ThisExpr { |
| 664 | if this, ok := lhs.(*sem.ThisExpr); ok { |
no test coverage detected