Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 912 for illegal (0.11 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. 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)
  3. 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)
  4. 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)
  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. 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)
  7. 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)
  8. 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)
  9. src/go/scanner/scanner.go

    		r, w := rune(s.src[s.rdOffset]), 1
    		switch {
    		case r == 0:
    			s.error(s.offset, "illegal character NUL")
    		case r >= utf8.RuneSelf:
    			// not ASCII
    			r, w = utf8.DecodeRune(s.src[s.rdOffset:])
    			if r == utf8.RuneError && w == 1 {
    				s.error(s.offset, "illegal UTF-8 encoding")
    			} else if r == bom && s.offset > 0 {
    				s.error(s.offset, "illegal byte order mark")
    			}
    		}
    		s.rdOffset += w
    		s.ch = r
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/bidi/prop.go

    	return Lookup(buf[:n])
    }
    
    // TODO: these lookup methods are based on the generated trie code. The returned
    // sizes have slightly different semantics from the generated code, in that it
    // always returns size==1 for an illegal UTF-8 byte (instead of the length
    // of the maximum invalid subsequence). Most Transformers, like unicode/norm,
    // leave invalid UTF-8 untouched, in which case it has performance benefits to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 5.7K bytes
    - Viewed (0)
Back to top