Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for assertstruct2 (0.09 sec)

  1. test/interface/assertinline.go

    }
    
    func assertfunc2(x interface{}) (func(), bool) {
    	z, ok := x.(func()) // ERROR "type assertion inlined"
    	return z, ok
    }
    
    func assertstruct(x interface{}) struct{ *int } {
    	return x.(struct{ *int }) // ERROR "type assertion inlined"
    }
    
    func assertstruct2(x interface{}) (struct{ *int }, bool) {
    	z, ok := x.(struct{ *int }) // ERROR "type assertion inlined"
    	return z, ok
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 21:33:03 UTC 2016
    - 1.8K bytes
    - Viewed (0)
Back to top