- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestKeepFuncLive (0.26 sec)
-
src/reflect/all_test.go
typ := ValueOf(f).Type() f2 := MakeFunc(typ, g).Interface().(func(string, string, string, string, string)) f2("four", "five5", "six666", "seven77", "eight888") } // Issue 18635 (function version). func TestKeepFuncLive(t *testing.T) { // Test that we keep makeFuncImpl live as long as it is // referenced on the stack. typ := TypeOf(func(i int) {}) var f, g func(in []Value) []Value f = func(in []Value) []Value {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)