Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 529 for illegally (0.42 sec)

  1. test/fixedbugs/bug068.go

    // errorcheck
    
    // 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.
    
    // RESOLUTION: This program is illegal.  We should reject all unnecessary backslashes.
    
    package main
    
    const c = '\'';  // this works
    const s = "\'";  // ERROR "invalid|escape"
    
    /*
    There is no reason why the escapes need to be different inside strings and chars.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 520 bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    		} else if c := s[i+3]; c < locb || hicb < c {
    			return false
    		}
    		i += size
    	}
    	return true
    }
    
    // ValidRune reports whether r can be legally encoded as UTF-8.
    // Code points that are out of range or a surrogate half are illegal.
    func ValidRune(r rune) bool {
    	switch {
    	case 0 <= r && r < surrogateMin:
    		return true
    	case surrogateMax < r && r <= MaxRune:
    		return true
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K 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