- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 4,249 for types2 (0.15 sec)
-
src/go/types/util_test.go
// Source: ../../cmd/compile/internal/types2/util_test.go // Copyright 2023 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. // This file exports various functionality of util.go // so that it can be used in (package-external) tests. package types import ( "go/token" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 626 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue46404.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 429 bytes - Viewed (0) -
src/go/types/main_test.go
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT. // Source: ../../cmd/compile/internal/types2/main_test.go // Copyright 2022 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. package types_test import ( "go/build" "internal/testenv" "os" "testing" ) func TestMain(m *testing.M) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 464 bytes - Viewed (0) -
src/cmd/compile/internal/types2/util_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file exports various functionality of util.go // so that it can be used in (package-external) tests. package types2 import ( "cmd/compile/internal/syntax" ) func CmpPos(p, q syntax.Pos) int { return cmpPos(p, q) } func ScopeComment(s *Scope) string { return s.comment }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 30 01:15:55 UTC 2023 - 520 bytes - Viewed (0) -
test/fixedbugs/bug231.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type I interface{ m() } type T struct{ m func() } type M struct{} func (M) m() {} func main() { var t T var m M var i I i = m // types2 does not give extra error "T.m is a field, not a method" i = t // ERROR "not a method|has no methods|does not implement I" _ = i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 466 bytes - Viewed (0) -
src/go/types/map.go
// Source: ../../cmd/compile/internal/types2/map.go // Copyright 2011 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. package types // A Map represents a map type. type Map struct { key, elem Type } // NewMap returns a new map for the given key and element types. func NewMap(key, elem Type) *Map { return &Map{key: key, elem: elem}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 781 bytes - Viewed (0) -
src/cmd/compile/internal/types2/mono_test.go
"func F[T any]() { F[struct{ t T }]() }", "func F[T any]() { F[interface{ t() T }]() }", "type U[_ any] int; func F[T any]() { F[U[T]]() }", "func F[T any]() { type U int; F[U]() }", "func F[T any]() { type U int; F[*U]() }", "type U[T any] int; func (U[T]) m() { var _ U[*T] }", "type U[T any] int; func (*U[T]) m() { var _ U[*T] }", "type U[T1 any] [unsafe.Sizeof(F[*T1])]byte; func F[T2 any]() { var _ U[T2] }",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
var _ = setOf( "import1.go", // types2 reports extra errors "initializerr.go", // types2 reports extra error "typecheck.go", // types2 reports extra error at function call "fixedbugs/bug176.go", // types2 reports all errors (pref: types2) "fixedbugs/bug195.go", // types2 reports slight different errors, and an extra error "fixedbugs/bug412.go", // types2 produces a follow-on error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
src/go/types/gccgosizes.go
// Source: ../../cmd/compile/internal/types2/gccgosizes.go // Copyright 2019 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. // This is a copy of the file generated during the gccgo build process. // Last update 2019-01-22. package types var gccgoArchSizes = map[string]*StdSizes{ "386": {4, 4},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/self_test.go
"testing" "time" . "cmd/compile/internal/types2" ) func TestSelf(t *testing.T) { testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files. files, err := pkgFiles(".") if err != nil { t.Fatal(err) } conf := Config{Importer: defaultImporter()} _, err = conf.Check("cmd/compile/internal/types2", files, nil) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 19:39:00 UTC 2023 - 2.8K bytes - Viewed (0)