Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for bug15 (0.09 sec)

  1. test/fixedbugs/bug157.go

    	default: f();
    	}
    
    	// this doesn't but it should
    	// (semicolons are not needed at the end of a statement list)
    	switch x {
    	case 0: f()
    	default: f()
    	}
    }
    
    
    /*
    bug157.go:20: syntax error near default
    bug157.go:20: first switch statement must be a case
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 524 bytes
    - Viewed (0)
  2. test/fixedbugs/bug151.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bug151
    
    type S string
    
    type Empty interface {}
    
    func (v S) Less(e Empty) bool {
    	return v < e.(S);
    }
    
    /*
    bugs/bug151.go:10: illegal types for operand: CALL
    	string
    	S
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 350 bytes
    - Viewed (0)
  3. test/fixedbugs/bug150.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bug150
    
    type T int
    func (t T) M()
    
    type M interface { M() } 
    
    func g() (T, T)
    
    func f() (a, b M) {
    	a, b = g();
    	return;
    }
    
    /*
    bugs/bug150.go:13: reorder2: too many function calls evaluating parameters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 00:47:29 UTC 2022
    - 385 bytes
    - Viewed (0)
  4. test/fixedbugs/bug145.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type t int
    
    func main() {
    	t := 0;
    	_ = t;
    }
    
    /*
    bug145.go:8: t is type, not var
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 270 bytes
    - Viewed (0)
  5. src/text/template/exec_test.go

    	{"bug9", "{{.cause}}", "neglect", map[string]string{"cause": "neglect"}, true},
    	// Field chain starting with function did not work.
    	{"bug10", "{{mapOfThree.three}}-{{(mapOfThree).three}}", "3-3", 0, true},
    	// Dereferencing nil pointer while evaluating function arguments should not panic. Issue 7333.
    	{"bug11", "{{valueString .PS}}", "", T{}, false},
    	// 0xef gave constant type float64. Issue 8622.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  6. test/fixedbugs/bug158.go

    package main
    
    func main() {
    	x := 0;
    
    	// this compiles
    	switch x {
    	case 0:
    	}
    
    	// this doesn't but should
    	switch 0 {
    	case 0:
    	}
    }
    
    
    /*
    bug158.go:14: fatal error: dowidth: unknown type: E-33
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 370 bytes
    - Viewed (0)
  7. test/fixedbugs/bug156.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func f(a int64) int64 {
    	const b int64 = 0;
    	n := a &^ b;
    	return n;
    }
    
    func main() {
    	f(1)
    }
    
    /*
    bug156.go:7: constant 18446744073709551615 overflows int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 346 bytes
    - Viewed (0)
  8. src/html/template/exec_test.go

    	{"bug9", "{{.cause}}", "neglect", map[string]string{"cause": "neglect"}, true},
    	// Field chain starting with function did not work.
    	{"bug10", "{{mapOfThree.three}}-{{(mapOfThree).three}}", "3-3", 0, true},
    	// Dereferencing nil pointer while evaluating function arguments should not panic. Issue 7333.
    	{"bug11", "{{valueString .PS}}", "", T{}, false},
    	// 0xef gave constant type float64. Issue 8622.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  9. test/fixedbugs/bug315.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 1368.
    
    package main
    
    func main() {
    	a := complex(2, 2)
    	a /= 2
    }
    
    /*
    bug315.go:13: internal compiler error: optoas: no entry DIV-complex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 321 bytes
    - Viewed (0)
  10. test/fixedbugs/bug083.dir/bug1.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bug1
    
    import "./bug0"
    
    // This is expected to fail--t0 is in package bug0 and should not be
    // visible here in package bug1.  The test for failure is in
    // ../bug083.go.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 372 bytes
    - Viewed (0)
Back to top