Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 912 for illegal (0.13 sec)

  1. test/indirect1.go

    	// it decides there are type errors.
    	x :=
    		len(m0)+
    		len(m1)+	// ERROR "illegal|invalid|must be"
    		len(m2)+	// ERROR "illegal|invalid|must be"
    		len(m3)+
    		len(m4)+	// ERROR "illegal|invalid|must be"
    
    		len(s0)+
    		len(s1)+	// ERROR "illegal|invalid|must be"
    		len(s2)+	// ERROR "illegal|invalid|must be"
    		len(s3)+
    		len(s4)+	// ERROR "illegal|invalid|must be"
    
    		len(a0)+
    		len(a1)+
    		len(a2)+
    
    		cap(a0)+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/armerror.s

    	MOVM.IB	[R0-R4], (F1)      // ERROR "illegal base register"
    	MOVM.DB	[R0-R4], (F1)      // ERROR "illegal base register"
    	MOVW	R0<<0(F1), R1      // ERROR "illegal base register"
    	MOVB	R0<<0(F1), R1      // ERROR "illegal base register"
    	MOVW	R1, R0<<0(F1)      // ERROR "illegal base register"
    	MOVB	R2, R0<<0(F1)      // ERROR "illegal base register"
    	MOVF	0x00ffffff(F2), F1 // ERROR "illegal base register"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 14:06:21 UTC 2017
    - 14.4K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/arm64error.s

    	LDADDALD	R5, (R6), RSP                            // ERROR "illegal combination"
    	LDADDALW	R5, (R6), RSP                            // ERROR "illegal combination"
    	LDADDALH	R5, (R6), RSP                            // ERROR "illegal combination"
    	LDADDALB	R5, (R6), RSP                            // ERROR "illegal combination"
    	LDADDD	R5, (R6), RSP                                    // ERROR "illegal combination"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  4. test/fixedbugs/bug324.dir/prog.go

    	x = new(Implementation)
    	x.private()  //  main.Implementation.private()
    
    	// same here - should be and is legal
    	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)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 07 16:37:05 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  5. test/fixedbugs/bug170.go

    // license that can be found in the LICENSE file.
    
    package main
    var v1 = ([10]int)(nil);	// ERROR "illegal|nil|invalid"
    var v2 [10]int = nil;		// ERROR "illegal|nil|incompatible"
    var v3 [10]int;
    var v4 = nil;	// ERROR "nil"
    func main() {
    	v3 = nil;		// ERROR "illegal|nil|incompatible"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 412 bytes
    - Viewed (0)
  6. test/fixedbugs/bug212.go

    package main
    type I int
    type S struct { f map[I]int }
    var v1 = S{ make(map[int]int) }		// ERROR "cannot|illegal|incompatible|wrong"
    var v2 map[I]int = map[int]int{}	// ERROR "cannot|illegal|incompatible|wrong"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 463 bytes
    - Viewed (0)
  7. test/fixedbugs/bug022.go

    package main
    
    func putint(digits *string) {
    	var i byte;
    	i = (*digits)[7];  // compiles
    	i = digits[7];  // ERROR "illegal|is not|invalid"
    	_ = i;
    }
    
    func main() {
    	s := "asdfasdfasdfasdf";
    	putint(&s);
    }
    
    /*
    bug022.go:8: illegal types for operand
    	(*<string>*STRING) INDEXPTR (<int32>INT32)
    bug022.go:8: illegal types for operand
    	(<uint8>UINT8) AS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 529 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        "Counts the number of ops that has qint types" /*metric description*/,
        "op_name" /*metric label*/);
    
    // Returns wether a type is illegal. Here we consider TF qint types illegal.
    // See pass description in passes.td for more info about how illegal types are
    // treated in this pass.
    bool IsIllegalType(Type type) {
      return IsTFQintType(getElementTypeOrSelf(type));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top