Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 5,019 for types2 (0.74 sec)

  1. src/cmd/compile/internal/types2/util.go

    // This file contains various functionality that is
    // different between go/types and types2. Factoring
    // out this code allows more of the rest of the code
    // to be shared.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = true
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. 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)
  3. src/internal/types/testdata/fixedbugs/issue46404.go

    // license that can be found in the LICENSE file.
    
    package issue46404
    
    // TODO(gri) re-enable this test with matching errors
    //           between go/types and types2
    // Check that we don't type check t[_] as an instantiation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 429 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top