Skip to content

Commit b0850b2

Browse files
committed
fixup
1 parent fbe31dc commit b0850b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gnovm/pkg/gnolang/type_check.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ func checkAssignableTo(xt, dt Type, autoNative bool) error {
309309
if ddt, ok := dt.(*DeclaredType); ok {
310310
// types must match exactly.
311311
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
314314
return nil // ok
315315
} else if dxt.TypeID() == ddt.TypeID() {
316316
return nil // ok
@@ -681,7 +681,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
681681
if len(x.Lhs) != len(cft.Results) {
682682
panic(fmt.Sprintf(
683683
"assignment mismatch: "+
684-
"%d variables but %s returns %d values",
684+
"%d variables but %s returns %d values",
685685
len(x.Lhs), cx.Func.String(), len(cft.Results)))
686686
}
687687
if x.Op == ASSIGN {
@@ -763,7 +763,7 @@ func (x *AssignStmt) AssertCompatible(store Store, last BlockNode) {
763763
// expr on lhs/rhs.
764764
if len(x.Lhs) != 1 || len(x.Rhs) != 1 {
765765
panic("assignment operator " + x.Op.TokenString() +
766-
" requires only one expression on lhs and rhs")
766+
" requires only one expression on lhs and rhs")
767767
}
768768
for i, lx := range x.Lhs {
769769
lt := evalStaticTypeOf(store, last, lx)

0 commit comments

Comments
 (0)