@@ -309,8 +309,8 @@ func checkAssignableTo(xt, dt Type, autoNative bool) error {
309
309
if ddt , ok := dt .(* DeclaredType ); ok {
310
310
// types must match exactly.
311
311
if ! dxt .sealed && ! ddt .sealed &&
312
- dxt .PkgPath == ddt .PkgPath &&
313
- dxt .Name == ddt .Name { // not yet sealed
312
+ dxt .PkgPath == ddt .PkgPath &&
313
+ dxt .Name == ddt .Name { // not yet sealed
314
314
return nil // ok
315
315
} else if dxt .TypeID () == ddt .TypeID () {
316
316
return nil // ok
@@ -566,7 +566,6 @@ func (x *BinaryExpr) AssertCompatible(lt, rt Type) {
566
566
}
567
567
568
568
func (x * BinaryExpr ) checkCompatibility (xt , dt Type , checker func (t Type ) bool , OpStr string ) {
569
- //fmt.Println("---checkCompatibility, dt: ", dt)
570
569
if ! checker (dt ) {
571
570
panic (fmt .Sprintf ("operator %s not defined on: %v" , OpStr , kindString (dt )))
572
571
}
@@ -682,7 +681,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
682
681
if len (x .Lhs ) != len (cft .Results ) {
683
682
panic (fmt .Sprintf (
684
683
"assignment mismatch: " +
685
- "%d variables but %s returns %d values" ,
684
+ "%d variables but %s returns %d values" ,
686
685
len (x .Lhs ), cx .Func .String (), len (cft .Results )))
687
686
}
688
687
if x .Op == ASSIGN {
@@ -764,7 +763,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
764
763
// expr on lhs/rhs.
765
764
if len (x .Lhs ) != 1 || len (x .Rhs ) != 1 {
766
765
panic ("assignment operator " + x .Op .TokenString () +
767
- " requires only one expression on lhs and rhs" )
766
+ " requires only one expression on lhs and rhs" )
768
767
}
769
768
for i , lx := range x .Lhs {
770
769
lt := evalStaticTypeOf (store , last , lx )
0 commit comments