- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 129 for parenthesize (0.17 sec)
-
test/fixedbugs/bug300.go
// illegal composite literals: parentheses not allowed around literal type _ = (struct{}){} // ERROR "parenthesize" _ = ([42]int){} // ERROR "parenthesize" _ = ([...]int){} // ERROR "parenthesize" _ = ([]int){} // ERROR "parenthesize" _ = (map[int]int){} // ERROR "parenthesize" _ = (T){} // ERROR "parenthesize"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 697 bytes - Viewed (0) -
test/fixedbugs/bug299.go
// legal according to spec x int y (int) int *float64 // not legal according to spec (complex128) // ERROR "non-declaration|expected|parenthesize" (*string) // ERROR "non-declaration|expected|parenthesize" *(bool) // ERROR "non-declaration|expected|parenthesize" } // legal according to spec func (p T) m() {} // now legal according to spec func (p (T)) f() {} func (p *(T)) g() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 666 bytes - Viewed (0) -
src/go/parser/short_test.go
`package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ int) }`, `package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ []byte) }`, `package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ int) }`, `package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ []byte) }`, // go.dev/issue/8656
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 10.1K bytes - Viewed (0) -
src/internal/types/testdata/examples/types.go
I0 I1[bool] m(string) } func _() { var x I3 x.m0() x.m1(true) x.m("foo") } type _ struct { ( /* ERROR "cannot parenthesize" */ int8) ( /* ERROR "cannot parenthesize" */ *int16) *( /* ERROR "cannot parenthesize" */ int32) List[int] int8 /* ERROR "int8 redeclared" */ *int16 /* ERROR "int16 redeclared" */ List /* ERROR "List redeclared" */ [int] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 23:16:04 UTC 2023 - 8.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go
c.To.goString(indent+2, "To: ")) } func (c *Cast) prec() precedence { return precCast } // The parenthesize function prints the string for val, wrapped in // parentheses if necessary. func parenthesize(ps *printState, val AST) { paren := false switch v := val.(type) { case *Name, *InitializerList: case *FunctionParam: if ps.llvmStyle {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 105.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// *(T) p.syntaxError("cannot parenthesize embedded type") p.next() typ = p.qualifiedName(nil) p.got(_Rparen) // no need to complain if missing } else { // *T typ = p.qualifiedName(nil) } tag := p.oliteral() p.addField(styp, pos, nil, newIndirect(pos, typ), tag) case _Lparen: p.syntaxError("cannot parenthesize embedded type") p.next() var typ Expr
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/parser/parser.go
} } else { // T P typ = p.parseType() } } case token.MUL: star := p.pos p.next() if p.tok == token.LPAREN { // *(T) p.error(p.pos, "cannot parenthesize embedded type") p.next() typ = p.parseQualifiedIdent(nil) // expect closing ')' but no need to complain if missing if p.tok == token.RPAREN { p.next() } } else { // *T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/parenthesis.kt
Anna Kozlova <******@****.***> 1717492092 +0200
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 14:04:46 UTC 2024 - 127 bytes - Viewed (0) -
analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/parenthesis.txt
Anna Kozlova <******@****.***> 1717492092 +0200
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 14:04:46 UTC 2024 - 342 bytes - Viewed (0) -
test/fixedbugs/issue4468.go
// Issue 4468: go/defer calls may not be parenthesized. package p type T int func (t *T) F() T { return *t } type S struct { t T } func F() { go F // ERROR "must be function call" defer F // ERROR "must be function call" go (F) // ERROR "must be function call|must not be parenthesized" defer (F) // ERROR "must be function call|must not be parenthesized"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 759 bytes - Viewed (0)