Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for struct_literals (0.11 sec)

  1. src/internal/types/testdata/check/expr3.go

    	var g func(*T) = (*T).m
    	_, _ = f, g
    
    	_ = T.y /* ERROR "has no method" */
    	_ = (*T).y /* ERROR "has no method" */
    }
    
    func struct_literals() {
    	type T0 struct {
    		a, b, c int
    	}
    
    	type T1 struct {
    		T0
    		a, b int
    		u float64
    		s string
    	}
    
    	// keyed elements
    	_ = T1{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 22:41:49 UTC 2023
    - 15.6K bytes
    - Viewed (0)
Back to top