- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 888 for Unexpected (0.63 sec)
-
src/cmd/compile/internal/syntax/testdata/issue56022.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func /* ERROR unexpected {, expected name or \($ */ {} func (T) /* ERROR unexpected {, expected name$ */ {} func (T) /* ERROR unexpected \(, expected name$ */ () {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 05 01:05:29 UTC 2022 - 390 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue49205.go
// test case from issue type _ interface{ m /* ERROR unexpected name int in interface type; possibly missing semicolon or newline or } */ int } // other cases where the fix for this issue affects the error message const ( x int = 10 /* ERROR unexpected literal "foo" in grouped declaration; possibly missing semicolon or newline or \) */ "foo" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 952 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue31092.go
// parser after seeing an := rather than an = in a const, // type, or variable declaration. package p const _ /* ERROR unexpected := */ := 0 type _ /* ERROR unexpected := */ := int var _ /* ERROR unexpected := */ := 0 const _ int /* ERROR unexpected := */ := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 529 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue52391.go
package p type _ interface { int (int) (*int) *([]byte) ~(int) (int) | (string) (int) | ~(string) (/* ERROR unexpected ~ */ ~int) (int /* ERROR unexpected \| */ | /* ERROR unexpected name string */ string /* ERROR unexpected \) */ )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 405 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue23434.go
// one error each time, with now follow errors. package p type T /* ERROR unexpected newline */ type Map map[int] /* ERROR unexpected newline */ // Examples from go.dev/issue/23434: func g() { m := make(map[string] /* ERROR unexpected ! */ !) for { x := 1 print(x) } } func f() { m := make(map[string] /* ERROR unexpected \) */ ) for { x := 1 print(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 653 bytes - Viewed (0) -
src/cmd/cgo/ast_go1.go
package main import ( "go/ast" "go/token" ) func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return nil } func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 578 bytes - Viewed (0) -
src/cmd/dist/testjson_test.go
{"Field1":"1","Package":"abc","Field3":"3"} {"Package":123} {} {"Package":"abc","Unexpected":[null,true,false,99999999999999999999]} ` want := strings.ReplaceAll(in, `"Package":"abc"`, `"Package":"abc:variant"`) checkJSONFilter(t, in, want) } func TestJSONFilterMalformed(t *testing.T) { const in = `unexpected text {"Package":"abc"} more text {"Package":"abc"}trailing text {not json} no newline`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 20:13:24 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/dist/buildtag_test.go
{"cmd_go_bootstrap", true, nil}, {"syntax(error", false, fmt.Errorf("parsing //go:build line: unexpected (")}, {"(gc", false, fmt.Errorf("parsing //go:build line: missing )")}, {"gc gc", false, fmt.Errorf("parsing //go:build line: unexpected tag")}, {"(gc))", false, fmt.Errorf("parsing //go:build line: unexpected )")}, } func TestBuildParser(t *testing.T) { for _, tt := range buildParserTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 25 00:02:52 UTC 2021 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main0.c
int main(void) { int8_t ran_init = DidInitRun(); if (!ran_init) { fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n", ran_init); return 1; } int8_t ran_main = DidMainRun(); if (ran_main) { fprintf(stderr, "ERROR: DidMainRun returned unexpected results: %d\n", ran_main); return 1; } int32_t from_pkg = FromPkg(); if (from_pkg != 1024) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.go
cb := NewCallback() c.SetCallback(cb) s := c.Call() if s != "Callback::run" { fatal("unexpected string from Call: %q", s) } c.DelCallback() } func testCallback() { c := NewCaller() cb := NewDirectorCallback(&GoCallback{}) c.SetCallback(cb) s := c.Call() if s != "GoCallback.Run" { fatal("unexpected string from Call with callback: %q", s) } c.DelCallback() DeleteDirectorCallback(cb)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:07 UTC 2023 - 1K bytes - Viewed (0)