Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 34 of 34 for issue11687 (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/internal/testdir/testdir_test.go

    	"fixedbugs/bug195.go", // types2 reports slight different errors, and an extra error
    	"fixedbugs/bug412.go", // types2 produces a follow-on error
    
    	"fixedbugs/issue11614.go", // types2 reports an extra error
    	"fixedbugs/issue17038.go", // types2 doesn't report a follow-on error (pref: types2)
    	"fixedbugs/issue23732.go", // types2 reports different (but ok) line numbers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top