- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for meth2 (0.05 sec)
-
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) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/TestPluginConvention1.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 858 bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/ifacemethod5.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:07:26 UTC 2023 - 777 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/TestPluginConvention2.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 819 bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/testdata/ipnets-with-kube-virt-interfaces.golden
iptables -t nat -N ISTIO_INBOUND iptables -t nat -N ISTIO_REDIRECT iptables -t nat -N ISTIO_IN_REDIRECT iptables -t nat -N ISTIO_OUTPUT iptables -t nat -I PREROUTING 1 -i eth1 -j RETURN iptables -t nat -I PREROUTING 1 -i eth2 -j RETURN iptables -t nat -A ISTIO_INBOUND -p tcp --dport 15008 -j RETURN iptables -t nat -A ISTIO_REDIRECT -p tcp -j REDIRECT --to-ports 15001 iptables -t nat -A ISTIO_IN_REDIRECT -p tcp -j REDIRECT --to-ports 15006
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 03:53:23 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/DefaultConventionTest.groovy
} @Test void mixesInEachMethodOfConventionObject() { assertEquals(convention1.meth('somearg'), convention.extensionsAsDynamicObject.meth('somearg')) } @Test void conventionObjectsMethodsHavePrecedenceAccordingToOrderAdded() { assertEquals(convention1.meth(), convention.extensionsAsDynamicObject.meth()) } @Test(expected = MissingMethodException) void testMissingMethod() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7K bytes - Viewed (0)