Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 529 for isLegal (0.33 sec)

  1. test/fixedbugs/bug109.go

    package bug109
    
    func f(a float64) float64 {
    	e := 1.0
    	e = e * a
    	return e
    }
    
    /*
    6g bugs/bug109.go
    bugs/bug109.go:5: illegal types for operand: MUL
    	(<float64>FLOAT64)
    	(<float32>FLOAT32)
    bugs/bug109.go:5: illegal types for operand: AS
    	(<float64>FLOAT64)
    bugs/bug109.go:6: illegal types for operand: RETURN
    	(<float32>FLOAT32)
    	(<float64>FLOAT64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 523 bytes
    - Viewed (0)
  2. test/chan/perm.go

    var (
    	cr <-chan int
    	cs chan<- int
    	c  chan int
    )
    
    func main() {
    	cr = c  // ok
    	cs = c  // ok
    	c = cr  // ERROR "illegal types|incompatible|cannot"
    	c = cs  // ERROR "illegal types|incompatible|cannot"
    	cr = cs // ERROR "illegal types|incompatible|cannot"
    	cs = cr // ERROR "illegal types|incompatible|cannot"
    
    	var n int
    	<-n    // ERROR "receive from non-chan|expected channel"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 14 23:33:46 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. test/fixedbugs/bug324.dir/prog.go

    	var px p.Exported
    	px = p.X
    	
    	// this assignment is correctly illegal:
    	//	px.private undefined (cannot refer to unexported field or method private)
    	// px.private()
    
    	// this assignment is correctly illegal:
    	//	*Implementation does not implement p.Exported (missing p.private method)
    	// px = new(Implementation)
    
    	// this assignment is correctly illegal:
    	//	p.Exported does not implement Exported (missing private method)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 07 16:37:05 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  4. test/fixedbugs/issue4405.go

    // license that can be found in the LICENSE file.
    
    package p
    
    const (
    	_ = iota
    	_ // ERROR "illegal character|invalid character"
    	_  // ERROR "illegal character|invalid character"
    	_  // ERROR "illegal character|invalid character"
    	_  // ERROR "illegal character|invalid character"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 413 bytes
    - Viewed (0)
  5. src/go/types/token_test.go

    	token.SHR_ASSIGN:     token.SHR,
    	token.AND_NOT_ASSIGN: token.AND_NOT,
    }
    
    func TestZeroTok(t *testing.T) {
    	// zero value for token.Token must be token.ILLEGAL
    	var zero token.Token
    	if token.ILLEGAL != zero {
    		t.Errorf("%s == %d; want 0", token.ILLEGAL, zero)
    	}
    }
    
    func TestAssignOp(t *testing.T) {
    	// there are fewer than 256 tokens
    	for i := 0; i < 256; i++ {
    		tok := token.Token(i)
    		got := assignOp(tok)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 08 03:40:04 UTC 2015
    - 1.2K bytes
    - Viewed (0)
  6. src/go/scanner/scanner_test.go

    	pos int
    	lit string
    	err string
    }{
    	{"\a", token.ILLEGAL, 0, "", "illegal character U+0007"},
    	{`#`, token.ILLEGAL, 0, "", "illegal character U+0023 '#'"},
    	{`…`, token.ILLEGAL, 0, "", "illegal character U+2026 '…'"},
    	{"..", token.PERIOD, 0, "", ""}, // two periods, not invalid token (issue #28112)
    	{`' '`, token.CHAR, 0, `' '`, ""},
    	{`''`, token.CHAR, 0, `''`, "illegal rune literal"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathValidationTest.groovy

            e.message =~ "contains illegal"
    
            when:
            ModelPath.validateName("aü")
    
            then:
            e = thrown(ModelPath.InvalidNameException)
            e.message =~ "contains illegal"
    
            when:
            ModelPath.validateName("abü")
    
            then:
            e = thrown(ModelPath.InvalidNameException)
            e.message =~ "contains illegal"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/verify-quant-legalization.mlir

      // expected-error@+1 {{'func.return' op is illegal as it is a UQ op or contains uq/qint types}}
      func.return %arg0: tensor<1x!tf_type.qint8>
    }
    
    // -----
    
    func.func @illegal_cast(%arg0: tensor<1x!tf_type.qint8>) -> tensor<1xi8> {
      // expected-error@+1 {{'tf.Cast' op is illegal as it is a UQ op or contains uq/qint types}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 18 18:54:14 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. test/fixedbugs/bug127.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    func main() {
    	var x int64 = 0;
    	println(x != nil);	// ERROR "illegal|incompatible|nil"
    	println(0 != nil);	// ERROR "illegal|incompatible|nil"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 334 bytes
    - Viewed (0)
  10. test/fixedbugs/bug087.go

    const s string = "foo";
    
    func main() {
    	i := len(s);  // should be legal to take len() of a constant
    	_ = i;
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6g bug087.go
    bug087.go:6: illegal combination of literals LEN 9
    bug087.go:6: illegal combination of literals LEN 9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 453 bytes
    - Viewed (0)
Back to top