Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for issue11687 (0.27 sec)

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

    	switch x {
    	case 9223372036854775808 /* ERROR "overflows int" */ :
    	}
    	var y float64
    	switch y {
    	case 9223372036854775808:
    	}
    }
    
    func issue11687() {
    	f := func() (_, _ int) { return }
    	switch f /* ERROR "multiple-value f" */ () {
    	}
    	var x int
    	switch f /* ERROR "multiple-value f" */ () {
    	case x:
    	}
    	switch x {
    	case f /* ERROR "multiple-value f" */ ():
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/issues0.go

    	}
    	type _ interface {
    		nosuchpkg /* ERROR "undefined: nosuchpkg" */ .Nosuchtype
    	}
    	type I interface {
    		I.m /* ERROR "I.m is not a type" */
    		m()
    	}
    }
    
    // issue11347
    // These should not crash.
    var a1, b1, c1 /* ERROR "cycle" */ b1 /* ERROR "b1 is not a type" */ = 0 > 0<<""[""[c1]]>c1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. test/escape2.go

    	var f func()
    	for {
    		x := new(int) // ERROR "new\(int\) escapes to heap$"
    		f = func() {  // ERROR "func literal escapes to heap$"
    			println(*x)
    		}
    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. test/escape2n.go

    	var f func()
    	for {
    		x := new(int) // ERROR "new\(int\) escapes to heap$"
    		f = func() {  // ERROR "func literal escapes to heap$"
    			println(*x)
    		}
    	}
    	_ = f
    }
    
    func issue11387(x int) func() int {
    	f := func() int { return x }    // ERROR "func literal escapes to heap"
    	slice1 := []func() int{f}       // ERROR "\[\].* does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top