Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for assertptr2 (0.17 sec)

  1. test/interface/assertinline.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func assertptr(x interface{}) *int {
    	return x.(*int) // ERROR "type assertion inlined"
    }
    
    func assertptr2(x interface{}) (*int, bool) {
    	z, ok := x.(*int) // ERROR "type assertion inlined"
    	return z, ok
    }
    
    func assertfunc(x interface{}) func() {
    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