Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,877 for types2 (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/compile/internal/types2/pointer.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    // A Pointer represents a pointer type.
    type Pointer struct {
    	base Type // element type
    }
    
    // NewPointer returns a new pointer type for the given element (base) type.
    func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }
    
    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 635 bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/types2/tuple.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types2
    
    // A Tuple represents an ordered list of variables; a nil *Tuple is a valid (empty) tuple.
    // Tuples are used as components of signatures and to represent the type of multiple
    // assignments; they are not first class types of Go.
    type Tuple struct {
    	vars []*Var
    }
    
    // NewTuple returns a new tuple for the given variables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 26 17:18:58 UTC 2021
    - 929 bytes
    - Viewed (0)
  10. src/go/types/chan.go

    // Source: ../../cmd/compile/internal/types2/chan.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 Chan represents a channel type.
    type Chan struct {
    	dir  ChanDir
    	elem Type
    }
    
    // A ChanDir value indicates a channel direction.
    type ChanDir int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top