Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for is3 (0.02 sec)

  1. test/escape_reflect.go

    	return v.IsValid() || v.IsNil() || v.IsZero()
    }
    
    func is2(x [2]int) bool {
    	v := reflect.ValueOf(x) // ERROR "x does not escape"
    	return v.IsValid() || v.IsNil() || v.IsZero()
    }
    
    func is3(x struct{ a, b int }) bool {
    	v := reflect.ValueOf(x) // ERROR "x does not escape"
    	return v.IsValid() || v.IsNil() || v.IsZero()
    }
    
    func overflow(x int) bool {
    	v := reflect.ValueOf(x) // ERROR "x does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
Back to top