- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for OXXX (0.28 sec)
-
src/cmd/compile/internal/typecheck/expr.go
l, r = defaultlit2(l, r, false) if l.Type() == nil || r.Type() == nil { return l, r, nil } t := l.Type() if t.Kind() == types.TIDEAL { t = r.Type() } aop := ir.OXXX if n.Op().IsCmp() && t.Kind() != types.TIDEAL && !types.Identical(l.Type(), r.Type()) { // comparison is okay as long as one side is // assignable to the other. convert so they have // the same type. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
// TODO(mdempsky): Handle all untyped types correctly. if src == types.UntypedBool && dst.Type().IsBoolean() { return } if op, why := assignOp(src, dst.Type()); op == ir.OXXX { base.Errorf("cannot assign %v to %L in multiple assignment%s", src, dst, why) return } } // The result of stringtoruneslit MUST be assigned back to n, e.g. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0)