From 559564d02e806a8427523c477bb9174527d0d0cd Mon Sep 17 00:00:00 2001 From: ltzmaxwell Date: Thu, 8 Aug 2024 10:36:10 +0800 Subject: [PATCH] Update gnovm/pkg/gnolang/preprocess.go Co-authored-by: deelawn --- gnovm/pkg/gnolang/preprocess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnovm/pkg/gnolang/preprocess.go b/gnovm/pkg/gnolang/preprocess.go index 6d0da5328ae..47a9dbd8fce 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