Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for bug111 (0.1 sec)

  1. test/fixedbugs/bug144.go

    // license that can be found in the LICENSE file.
    
    package main
    
    const c = 1;
    
    func main() {
    	c := 0;
    	_ = c;
    }
    
    /*
    bug144.go:8: left side of := must be a name
    bug144.go:8: operation LITERAL not allowed in assignment context
    bug144.go:8: illegal types for operand: AS
    	ideal
    	int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 404 bytes
    - Viewed (0)
  2. test/fixedbugs/bug143.go

    	}
    	{
    		x, ok := f()["key"];
    		_, _ = x, ok;
    	}
    	{
    		var x int;
    		var ok bool;
    		x, ok = f()["key"];
    		_, _ = x, ok;
    	}
    }
    
    /*
     * bug143.go:19: assignment count mismatch: 2 = 1
     * bug143.go:18: x: undefined
     * bug143.go:18: ok: undefined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 647 bytes
    - Viewed (0)
  3. test/fixedbugs/bug140.go

    func main() {
    	if true {
    	} else {
    	L1:
    		goto L1
    	}
    	if true {
    	} else {
    		goto L2
    	L2:
    		main()
    	}
    }
    
    /*
    These should be legal according to the spec.
    bug140.go:6: syntax error near L1
    bug140.go:7: syntax error near L2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 409 bytes
    - Viewed (0)
  4. 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)
  5. test/fixedbugs/bug137.go

    L1:
    L2:
    	for i := 0; i < 10; i++ {
    		print(i)
    		break L2
    	}
    
    L3:
    	;
    L4:
    	for i := 0; i < 10; i++ {
    		print(i)
    		break L4
    	}
    	goto L1
    	goto L3
    }
    
    /*
    bug137.go:9: break label is not defined: L2
    bug137.go:15: break label is not defined: L4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 440 bytes
    - Viewed (0)
  6. test/fixedbugs/bug167.go

    		x int
    	}
    }
    
    func f2() {
    	type T struct {
    		x float64
    	}
    }
    
    func main() {
    	f1()
    	f2()
    }
    
    /*
    1606416576: conflicting definitions for main.T·bug167
    bug167.6:	type main.T·bug167 struct { x int }
    bug167.6:	type main.T·bug167 struct { x float64 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 23:19:59 UTC 2012
    - 462 bytes
    - Viewed (0)
  7. test/fixedbugs/bug219.go

    // compile
    
    // 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 bug219
    
    func f(func()) int { return 0 }
    
    // this doesn't work:
    // bug219.go:16: syntax error near if
    func g1() {
    	if x := f(func() {
    		if true {}
    	}); true {
    		_ = x;
    	}
    }
    
    // this works
    func g2() {
    	if x := f(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 527 bytes
    - Viewed (0)
  8. src/text/template/exec_test.go

    	{"bug15", "{{valueString returnInt}}", "", tVal, false},
    	// Variadic function corner cases. Issue 10946.
    	{"bug16a", "{{true|printf}}", "", tVal, false},
    	{"bug16b", "{{1|printf}}", "", tVal, false},
    	{"bug16c", "{{1.1|printf}}", "", tVal, false},
    	{"bug16d", "{{'x'|printf}}", "", tVal, false},
    	{"bug16e", "{{0i|printf}}", "", tVal, false},
    	{"bug16f", "{{true|twoArgs \"xxx\"}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  9. test/fixedbugs/bug081.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 main
    
    const x x = 2 // ERROR "loop|type|cycle"
    
    /*
    bug081.go:3: first constant must evaluate an expression
    Bus error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 03 17:55:56 UTC 2020
    - 303 bytes
    - Viewed (0)
  10. 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)
Back to top