- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 897 for Imported (0.16 sec)
-
test/fixedbugs/issue10700.dir/test.go
// license that can be found in the LICENSE file. package main import "./other" type Imported interface { Do() } type HasAMethod struct { x int } func (me *HasAMethod) Do() { println(me.x) } func InMyCode(x *Imported, y *HasAMethod, z *other.Exported) { x.Do() // ERROR "x\.Do undefined \(type \*Imported is pointer to interface, not interface\)|type that is pointer to interface"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 10 18:34:40 UTC 2020 - 2.5K bytes - Viewed (0) -
src/internal/types/testdata/check/importdecl0/importdecl0a.go
// reflect defines a type "flag" which shows up in the gc export data "reflect" . /* ERROR "imported and not used" */ "reflect" ) import "math" /* ERROR "imported and not used" */ import m /* ERROR "imported as m and not used" */ "math" import _ "math" import ( "math/big" /* ERROR "imported and not used" */ b /* ERROR "imported as b and not used" */ "math/big" _ "math/big" ) import "fmt" import f1 "fmt"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 1.3K bytes - Viewed (0) -
test/fixedbugs/issue5957.dir/c.go
package p import ( "./a" // ERROR "imported and not used: \x22test/a\x22 as surprise|imported and not used: surprise|\x22test/a\x22 imported as surprise and not used" "./b" // ERROR "imported and not used: \x22test/b\x22 as surprise2|imported and not used: surprise2|\x22test/b\x22 imported as surprise2 and not used" b "./b" // ERROR "imported and not used: \x22test/b\x22$|imported and not used: surprise2|\x22test/b\x22 imported and not used"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 762 bytes - Viewed (0) -
test/import1.go
import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and not used|imported as bufio and not used" import ( "fmt" // ERROR "previous|not used" fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt|imported as fmt and not used" . "math" // GC_ERROR "imported and not used: \x22math\x22$|imported and not used"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 703 bytes - Viewed (0) -
test/import4.dir/import4.go
// Verify that various kinds of "imported and not used" // errors are caught by the compiler. // Does not compile. package main // standard import "fmt" // ERROR "imported and not used.*fmt|\x22fmt\x22 imported and not used" // renamed import X "math" // ERROR "imported and not used.*math|\x22math\x22 imported as X and not used" // import dot import . "bufio" // ERROR "imported and not used.*bufio|imported and not used"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 877 bytes - Viewed (0) -
test/fixedbugs/issue20298.go
"fmt" // ERROR "imported and not used" "io" // ERROR "imported and not used" "io/ioutil" // ERROR "imported and not used" "log" // ERROR "imported and not used" "math" // ERROR "imported and not used" "math/big" // ERROR "imported and not used" "too many errors" "math/bits" "net" "net/http" "os" "path" "path/filepath" "regexp" "strings"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 21:14:56 UTC 2017 - 984 bytes - Viewed (0) -
src/go/types/resolver_test.go
if mode != 0 { panic("mode must be 0") } if imp.importer == nil { imp.importer = importer.Default().(ImporterFrom) imp.imported = make(map[string]bool) } pkg, err := imp.importer.ImportFrom(path, srcDir, mode) if err != nil { return nil, err } imp.imported[path] = true return pkg, nil } func TestResolveIdents(t *testing.T) { testenv.MustHaveGoBuild(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/ast/resolve.go
} } return false } // An Importer resolves import paths to package Objects. // The imports map records the packages already imported, // indexed by package id (canonical import path). // An Importer must determine the canonical import path and // check the map to see if it is already present in the imports map. // If so, the Importer can return the map entry. Otherwise, the // Importer should load the package data for the given path into
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_get_test.txt
# 'go get -t' should consider test dependencies of the named package. cp go.mod.empty go.mod go get -t m/a grep 'rsc.io/quote v1.5.2$' go.mod # 'go get -t' should not consider test dependencies of imported packages, # including packages imported from tests. cp go.mod.empty go.mod go get -t m/b ! grep rsc.io/quote go.mod # 'go get -t -u' should update test dependencies of the named package. cp go.mod.empty go.mod
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 1.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
) type resolveTestImporter struct { importer ImporterFrom imported map[string]bool } func (imp *resolveTestImporter) Import(string) (*Package, error) { panic("should not be called") } func (imp *resolveTestImporter) ImportFrom(path, srcDir string, mode ImportMode) (*Package, error) { if mode != 0 { panic("mode must be 0") } if imp.importer == nil { imp.importer = defaultImporter().(ImporterFrom)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0)