Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,485 for corerest (0.23 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/defers/doc.go

    // that this is nearly always a mistake.
    //
    // For example:
    //
    //	start := time.Now()
    //	...
    //	defer recordLatency(time.Since(start)) // error: call to time.Since is not deferred
    //
    // The correct code is:
    //
    //	defer func() { recordLatency(time.Since(start)) }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 20:06:48 UTC 2023
    - 763 bytes
    - Viewed (0)
  2. test/fixedbugs/issue27201.go

    	n := runtime.Stack(buf[:], false)
    	s := string(buf[:n])
    	if strings.Contains(s, "issue27201.go:21 ") {
    		panic("panic at wrong location")
    	}
    	if !strings.Contains(s, "issue27201.go:20 ") {
    		panic("no panic at correct location")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 14 22:41:33 UTC 2019
    - 681 bytes
    - Viewed (0)
  3. test/fixedbugs/issue8183.go

    // errorcheck
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests correct reporting of line numbers for errors involving iota,
    // Issue #8183.
    package foo
    
    const (
    	ok = byte(iota + 253)
    	bad
    	barn
    	bard // ERROR "constant 256 overflows byte|integer constant overflow|cannot convert"
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 622 bytes
    - Viewed (0)
  4. test/fixedbugs/issue11369.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that the half multiply resulting from a division
    // by a constant generates correct code.
    
    package main
    
    func main() {
    	var _ = 7 / "0"[0] // test case from #11369
    	var _ = 1 / "."[0] // test case from #11358
    	var x = 0 / "0"[0]
    	var y = 48 / "0"[0]
    	var z = 5 * 48 / "0"[0]
    	if x != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 26 15:55:22 UTC 2015
    - 567 bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/testdata/g.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Input for TestTypeNamingOrder
    
    // ensures that the order in which "type A B" declarations are
    // processed is correct; this was a problem for unified IR imports.
    
    package g
    
    type Client struct {
    	common service
    	A      *AService
    	B      *BService
    }
    
    type service struct {
    	client *Client
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 30 00:27:25 UTC 2022
    - 498 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/build_trimpath_goroot.txt

    [trimpath] env GOROOT=$TESTGO_GOROOT
    
    [short] stop
    
    # With GOROOT still set, 'go build' and 'go test -c'
    # should cause runtime.GOROOT() to report either the correct GOROOT
    # (without -trimpath) or no GOROOT at all (with -trimpath).
    
    go build -o example.exe .
    go build -trimpath -o example-trimpath.exe .
    go test -c -o example.test.exe .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue3925.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 3925: wrong line number for error message "missing key in map literal"
    
    // also a test for correct line number in other malformed composite literals.
    
    package foo
    
    var _ = map[string]string{
    	"1": "2",
    	"3", "4", // ERROR "missing key|must have keys"
    }
    
    var _ = []string{
    	"foo",
    	"bar",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 535 bytes
    - Viewed (0)
  8. test/fixedbugs/issue26855.go

    // errorcheck
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Verify that we get the correct (T vs &T) literal specification
    // in the error message.
    
    package p
    
    type S struct {
    	f T
    }
    
    type P struct {
    	f *T
    }
    
    type T struct{}
    
    var _ = S{
    	f: &T{}, // ERROR "cannot use &T{}|incompatible type"
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 479 bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/ComponentSelectorParsers.java

                } catch (IllegalDependencyNotation e) {
                    throw new InvalidUserDataException(
                            "Invalid format: '" + notation + "'. The correct notation is a 3-part group:name:version notation, "
                                    + "e.g: 'org.gradle:gradle-core:1.0'");
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 01:47:36 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/syntax.go

    package syntax
    
    import (
    	"fmt"
    	"io"
    	"os"
    )
    
    // Mode describes the parser mode.
    type Mode uint
    
    // Modes supported by the parser.
    const (
    	CheckBranches Mode = 1 << iota // check correct use of labels, break, continue, and goto statements
    )
    
    // Error describes a syntax error. Error implements the error interface.
    type Error struct {
    	Pos Pos
    	Msg string
    }
    
    func (err Error) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top