- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TILDE (0.1 sec)
-
src/cmd/compile/internal/syntax/parser.go
} // EmbeddedTerm = [ "~" ] Type . func (p *parser) embeddedTerm() Expr { if trace { defer p.trace("embeddedTerm")() } if p.tok == _Operator && p.op == Tilde { t := new(Operation) t.pos = p.pos() t.Op = Tilde p.next() t.X = p.type_() return t } t := p.typeOrNil() if t == nil { t = p.badExpr() p.syntaxError("expected ~ term or type")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/types/expr.go
x.mode = invalid return } x.mode = commaok x.typ = ch.elem check.hasCallOrRecv = true return case token.TILDE: // Provide a better error position and message than what check.op below would do. if !allInteger(x.typ) { check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint") x.mode = invalid
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
x.mode = invalid return } x.mode = commaok x.typ = ch.elem check.hasCallOrRecv = true return case syntax.Tilde: // Provide a better error position and message than what check.op below would do. if !allInteger(x.typ) { check.error(e, UndefinedOp, "cannot use ~ outside of interface or type constraint") x.mode = invalid
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)