diff --git a/gnovm/pkg/gnolang/preprocess.go b/gnovm/pkg/gnolang/preprocess.go index f378aeccfb9..dd077c18a9e 100644 --- a/gnovm/pkg/gnolang/preprocess.go +++ b/gnovm/pkg/gnolang/preprocess.go @@ -2912,7 +2912,7 @@ func assertTypeDeclNoCycle(store Store, last BlockNode, td *TypeDecl, stack *[]N func assertTypeDeclNoCycle2(store Store, last BlockNode, x Expr, stack *[]Name, indirect bool, isAlias bool) { if x == nil { - panic("should not happen") + panic("unexpected nil expression when checking for type declaration cycles") } var lastX Expr