Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 210 for predeclared (0.23 sec)

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

    					err.report()
    					continue L
    				}
    			}
    			seen[val] = append(seen[val], valueType{v.Pos(), v.typ})
    		}
    	}
    }
    
    // isNil reports whether the expression e denotes the predeclared value nil.
    func (check *Checker) isNil(e syntax.Expr) bool {
    	// The only way to express the nil value is by literally writing nil (possibly in parentheses).
    	if name, _ := syntax.Unparen(e).(*syntax.Name); name != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. hack/tools/go.sum

    github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs=
    github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=
    github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c=
    github.com/nunnatsa/ginkgolinter v0.15.2 h1:N2ORxUxPU56R9gsfLIlVVvCv/V/VVou5qVI1oBKBNHg=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 93.1K bytes
    - Viewed (0)
  3. doc/asm.html

    <h3 id="symbols">Symbols</h3>
    
    <p>
    Some symbols, such as <code>R1</code> or <code>LR</code>,
    are predefined and refer to registers.
    The exact set depends on the architecture.
    </p>
    
    <p>
    There are four predeclared symbols that refer to pseudo-registers.
    These are not real registers, but rather virtual registers maintained by
    the toolchain, such as a frame pointer.
    The set of pseudo-registers is the same for all architectures:
    </p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  4. test/fixedbugs/issue4252.dir/a.go

    // A package that redeclares common builtin names.
    package a
    
    var true = 0 == 1
    var false = 0 == 0
    var nil = 1
    
    const append = 42
    
    type error bool
    type int interface{}
    
    func len(interface{}) int32 { return 42 }
    
    func Test() {
    	var array [append]int
    	if true {
    		panic("unexpected builtin true instead of redeclared one")
    	}
    	if !false {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 807 bytes
    - Viewed (0)
  5. test/fixedbugs/bug342.go

    // license that can be found in the LICENSE file.
    
    // Issue 1871.
    
    package p
    
    type a interface {
    	foo(x int) (x int) // ERROR "duplicate argument|redefinition|redeclared"
    }
    
    /*
    Previously:
    
    bug.go:1 x redclared in this block
        previous declaration at bug.go:1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 389 bytes
    - Viewed (0)
  6. src/cmd/cgo/out.go

    				fn(i, n.Name, r.Type)
    				i++
    			}
    		}
    	}
    }
    
    func c(repr string, args ...interface{}) *TypeRepr {
    	return &TypeRepr{repr, args}
    }
    
    // Map predeclared Go types to Type.
    var goTypes = map[string]*Type{
    	"bool":       {Size: 1, Align: 1, C: c("GoUint8")},
    	"byte":       {Size: 1, Align: 1, C: c("GoUint8")},
    	"int":        {Size: 0, Align: 0, C: c("GoInt")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. test/funcdup.go

    	F2(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    	F3() (i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    }
    
    type T1 func(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    type T2 func(i int) (i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  8. test/declbad.go

    	{
    		// simple redeclaration
    		i := f1()
    		i := f1() // ERROR "redeclared|no new"
    		_ = i
    	}
    	{
    		// change of type for f
    		i, f, s := f3()
    		f, g, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use"
    		_, _, _, _, _ = i, f, s, g, t
    	}
    	{
    		// change of type for i
    		i, f, s := f3()
    		j, i, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use"
    		_, _, _, _, _ = i, f, s, j, t
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 14 07:12:37 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/decls0.go

    	F2 func(x, y, z float32)
    	F3 func(x, y, x /* ERROR "redeclared" */ float32)
    	F4 func() (x, y, x /* ERROR "redeclared" */ float32)
    	F5 func(x int) (x /* ERROR "redeclared" */ float32)
    	F6 func(x ...int)
    
    	I1 interface{}
    	I2 interface {
    		m1()
    	}
    	I3 interface {
    		m1()
    		m1 /* ERROR "duplicate method m1" */ ()
    	}
    	I4 interface {
    		m1(x, y, x /* ERROR "redeclared" */ float32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. test/funcdup2.go

    	F2(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    	F3() (i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    }
    
    var T1 func(i, i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    var T2 func(i int) (i int) // ERROR "duplicate argument i|redefinition|previous|redeclared"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 721 bytes
    - Viewed (0)
Back to top