Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 529 for isLegal (0.12 sec)

  1. test/fixedbugs/bug046.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 *struct {}
    
    func (x T) M () {}  // ERROR "pointer|receiver"
    
    /*
    bug046.go:7: illegal <this> pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 299 bytes
    - Viewed (0)
  2. src/strconv/itoa_test.go

    			s := Itoa(int(test.in))
    			if s != test.out {
    				t.Errorf("Itoa(%v) = %v want %v",
    					test.in, s, test.out)
    			}
    		}
    	}
    
    	// Override when base is illegal
    	defer func() {
    		if r := recover(); r == nil {
    			t.Fatalf("expected panic due to illegal base")
    		}
    	}()
    	FormatUint(12345678, 1)
    }
    
    type uitob64Test struct {
    	in   uint64
    	base int
    	out  string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 15 21:09:39 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. test/fixedbugs/bug112.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 struct { s string }
    var t = T{"hi"}
    
    func main() {}
    
    /*
    bug112.go:6: illegal conversion of constant to T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 301 bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

                        holder.binaries.create("illegal", SampleBinary)
                    }
                }
    
                apply type: IllegallyMutatingComponentBinariesRules
            """
    
            when:
            fails "tasks"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  5. test/fixedbugs/bug151.go

    // 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)
  6. src/math/big/hilbert_test.go

    func (a *matrix) set(i, j int, x *Rat) {
    	if !(0 <= i && i < a.n && 0 <= j && j < a.m) {
    		panic("index out of range")
    	}
    	a.a[i*a.m+j] = x
    }
    
    func newMatrix(n, m int) *matrix {
    	if !(0 <= n && 0 <= m) {
    		panic("illegal matrix")
    	}
    	a := new(matrix)
    	a.n = n
    	a.m = m
    	a.a = make([]*Rat, n*m)
    	return a
    }
    
    func newUnit(n int) *matrix {
    	a := newMatrix(n, n)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.9K bytes
    - Viewed (0)
  7. test/fixedbugs/bug098.go

    	_, _ = a, m;
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6g bug098.go && 6l bug098.6 && 6.out
    bug098.go:10: illegal types for operand: AS
    	(*MAP[<int32>INT32]<int32>INT32)
    	(**MAP[<int32>INT32]<int32>INT32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 582 bytes
    - Viewed (0)
  8. test/fixedbugs/issue4348.go

    // Copyright 2012 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.
    
    // Issue 4348. After switch to 64-bit ints the compiler generates
    // illegal instructions when using large array bounds or indexes.
    
    // Skip. We reject symbols larger that 2GB (Issue #9862).
    
    package main
    
    // 1<<32 on a 64-bit machine, 1 otherwise.
    const LARGE = ^uint(0)>>32 + 1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:51:03 UTC 2020
    - 584 bytes
    - Viewed (0)
  9. test/fixedbugs/bug016.go

    package main
    
    func main() {
    	var i int = 100
    	i = i << -3 // ERROR "overflows|negative"
    }
    
    /*
    ixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
    fixedbugs/bug016.go:7: illegal types for operand: AS
    	(<int32>INT32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 410 bytes
    - Viewed (0)
  10. test/varerr.go

    // errorcheck
    
    // Copyright 2010 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.
    
    // Verify that a couple of illegal variable declarations are caught by the compiler.
    // Does not compile.
    
    package main
    
    func main() {
    	_ = asdf	// ERROR "undefined.*asdf"
    
    	new = 1	// ERROR "use of builtin new not in function call|invalid left hand side|must be called"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 449 bytes
    - Viewed (0)
Back to top