Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 210 for predeclared (0.15 sec)

  1. src/cmd/compile/internal/typecheck/iexport.go

    //         Implicit   bool
    //         Constraint typeOff
    //     }
    //
    // typeOff means a uvarint that either indicates a predeclared type,
    // or an offset into the Data section. If the uvarint is less than
    // predeclReserved, then it indicates the index into the predeclared
    // types list (see predeclared in bexport.go for order). Otherwise,
    // subtracting predeclReserved yields the offset of a type descriptor.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/go/doc/testdata/error1.0.golden

    // 
    PACKAGE error1
    
    IMPORTPATH
    	testdata/error1
    
    FILENAMES
    	testdata/error1.go
    
    TYPES
    	// 
    	type I0 interface {
    		// When embedded, the predeclared error interface
    		// must remain visible in interface types.
    		error
    	}
    
    	// 
    	type S0 struct {
    		// contains filtered or unexported fields
    	}
    
    	// 
    	type T0 struct {
    		ExportedField interface {
    			// error should be visible
    			error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 390 bytes
    - Viewed (0)
  3. src/go/doc/testdata/error1.2.golden

    // 
    PACKAGE error1
    
    IMPORTPATH
    	testdata/error1
    
    FILENAMES
    	testdata/error1.go
    
    TYPES
    	// 
    	type I0 interface {
    		// When embedded, the predeclared error interface
    		// must remain visible in interface types.
    		error
    	}
    
    	// 
    	type S0 struct {
    		// contains filtered or unexported fields
    	}
    
    	// 
    	type T0 struct {
    		ExportedField interface {
    			// error should be visible
    			error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 390 bytes
    - Viewed (0)
  4. src/go/doc/testdata/error1.1.golden

    // 
    PACKAGE error1
    
    IMPORTPATH
    	testdata/error1
    
    FILENAMES
    	testdata/error1.go
    
    TYPES
    	// 
    	type I0 interface {
    		// When embedded, the predeclared error interface
    		// must remain visible in interface types.
    		error
    	}
    
    	// 
    	type S0 struct {
    		// In struct types, an embedded error must only be visible
    		// if AllDecls is set.
    		error
    	}
    
    	// 
    	type T0 struct {
    		ExportedField interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 440 bytes
    - Viewed (0)
  5. src/go/doc/testdata/error2.go

    		// error should not be visible
    		error
    	}
    }
    
    type S0 struct {
    	// In struct types, an embedded error must only be visible
    	// if AllDecls is set.
    	error
    }
    
    // This error declaration shadows the predeclared error type.
    type error interface {
    	Error() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 618 bytes
    - Viewed (0)
  6. src/go/doc/testdata/error2.1.golden

    		// if AllDecls is set.
    		error
    	}
    
    	// 
    	type T0 struct {
    		ExportedField interface {
    			// error should not be visible
    			error
    		}
    	}
    
    	// This error declaration shadows the predeclared error type. 
    	type error interface {
    		Error() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 565 bytes
    - Viewed (0)
  7. test/typeparam/tparam1.go

    package tparam1
    
    // The predeclared identifier "any" may be used in place of interface{}.
    var _ any
    
    func _(_ any)
    
    type _[_ any] struct{}
    
    const N = 10
    
    type (
    	_                     []struct{}  // slice
    	_                     [N]struct{} // array
    	_[T any]              struct{}
    	_[T, T any]           struct{} // ERROR "T redeclared"
    	_[T1, T2 any, T3 any] struct{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. src/go/doc/testdata/error1.go

    // Copyright 2012 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 error1
    
    type I0 interface {
    	// When embedded, the predeclared error interface
    	// must remain visible in interface types.
    	error
    }
    
    type T0 struct {
    	ExportedField interface {
    		// error should be visible
    		error
    	}
    }
    
    type S0 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 498 bytes
    - Viewed (0)
  9. test/rename.go

    // run
    
    // Copyright 2009 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.
    
    // Test that predeclared names can be redeclared by the user.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func main() {
    	n :=
    		append +
    			bool +
    			byte +
    			complex +
    			complex64 +
    			complex128 +
    			cap +
    			close +
    			delete +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  10. test/deferprint.go

    // run
    
    // Copyright 2010 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.
    
    // Test that we can defer the predeclared functions print and println.
    
    package main
    
    func main() {
    	defer println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 586 bytes
    - Viewed (0)
Back to top