Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for meth2 (0.22 sec)

  1. test/fixedbugs/bug323.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type T struct{}
    type P *T
    
    func (t *T) Meth() {}
    func (t T) Meth2() {}
    
    func main() {
    	t := &T{}
    	p := P(t)
    	p.Meth()  // ERROR "undefined"
    	p.Meth2() // ERROR "undefined"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 363 bytes
    - Viewed (0)
  2. test/newinline.go

    type T1 struct{}
    
    func (a T1) meth(val int) int { // ERROR "can inline T1.meth"
    	return val + 5
    }
    
    func getMeth(t1 T1) func(int) int { // ERROR "can inline getMeth"
    	return t1.meth // ERROR "t1.meth escapes to heap"
    	// ERRORAUTO "inlining call to T1.meth"
    }
    
    func ii() { // ERROR "can inline ii"
    	var t1 T1
    	f := getMeth(t1) // ERROR "inlining call to getMeth" "t1.meth does not escape"
    	_ = f(3)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. test/inline.go

    type T1 struct{}
    
    func (a T1) meth(val int) int { // ERROR "can inline T1.meth"
    	return val + 5
    }
    
    func getMeth(t1 T1) func(int) int { // ERROR "can inline getMeth"
    	return t1.meth // ERROR "t1.meth escapes to heap"
    	// ERRORAUTO "inlining call to T1.meth"
    }
    
    func ii() { // ERROR "can inline ii"
    	var t1 T1
    	f := getMeth(t1) // ERROR "inlining call to getMeth" "t1.meth does not escape"
    	_ = f(3)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go

    		false,
    	)
    	println(t.Name())
    }
    
    func main() {
    	useStructOf()
    	useFuncOf()
    
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	methV := v.MethodByName("M")
    	methV.Call([]reflect.Value{v})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 994 bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/testdata/deadcode/ifacemethod6.go

    func (s S) N() { println("S.N") }
    
    type T float64
    
    func (t T) F(s S) {}
    
    func main() {
    	var t T
    	meth, _ := reflect.TypeOf(t).MethodByName("F")
    	ft := meth.Type
    	at := ft.In(1)
    	v := reflect.New(at).Elem()
    	methV := v.MethodByName("M")
    	methV.Call([]reflect.Value{v})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 666 bytes
    - Viewed (0)
  6. pkg/test/loadbalancersim/loadbalancer/priority.go

    //  limitations under the License.
    
    package loadbalancer
    
    import (
    	mesh2 "istio.io/istio/pkg/test/loadbalancersim/mesh"
    )
    
    type PrioritySelector func(src *mesh2.Client, dest *mesh2.Node) uint32
    
    func LocalityPrioritySelector(src *mesh2.Client, dest *mesh2.Node) uint32 {
    	priority := uint32(2)
    	if src.Locality().Region == dest.Locality().Region {
    		priority = 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 1017 bytes
    - Viewed (0)
  7. pkg/test/loadbalancersim/loadbalancer/weight.go

    }
    
    func (lb *weightedConnections) Latency() *timeseries.Instance {
    	return lb.helper.Latency()
    }
    
    type WeightedConnectionFactory func(src *mesh2.Client, n *mesh2.Node) *WeightedConnection
    
    func EquallyWeightedConnectionFactory() WeightedConnectionFactory {
    	return func(src *mesh2.Client, dest *mesh2.Node) *WeightedConnection {
    		return &WeightedConnection{
    			Connection: src.Mesh().NewConnection(src, dest),
    			Weight:     1,
    		}
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go

    		// Report methods of T and *T, preferring those of T.
    		pmset := msets.MethodSet(types.NewPointer(T))
    		for i, n := 0, pmset.Len(); i < n; i++ {
    			meth := pmset.At(i)
    			if m := mset.Lookup(meth.Obj().Pkg(), meth.Obj().Name()); m != nil {
    				meth = m
    			}
    			result = append(result, meth)
    		}
    
    	}
    	return result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/net/testdata/igmp6

    3    eth1            ff0200000000000000000001ffac8928     2 00000006 0
    3    eth1            ff020000000000000000000000000001     1 0000000C 0
    4    eth2            ff0200000000000000000001ffac8932     2 00000006 0
    4    eth2            ff020000000000000000000000000001     1 0000000C 0
    5    eth0.100        ff0200000000000000000001ffac891e     1 00000004 0
    5    eth0.100        ff020000000000000000000000000001     1 0000000C 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/TestPluginConvention1.groovy

     */
     
    package org.gradle.internal.extensibility
    
    class TestPluginConvention1 {
        String a = 'a1'
        String b = 'b'
        String c = 'c' 
    
        String meth() {
            'called1'
        }
    
        String meth(String arg) {
            'called1' + arg
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 858 bytes
    - Viewed (0)
Back to top