From 9f76237705f282eade34252fbead01fd6c937b62 Mon Sep 17 00:00:00 2001 From: visualfc Date: Mon, 13 Jan 2025 12:38:15 +0800 Subject: [PATCH] ssa: fix cvtType check types.Alias --- compiler/ssa/type_cvt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ssa/type_cvt.go b/compiler/ssa/type_cvt.go index 454266a7..0b8e8fb7 100644 --- a/compiler/ssa/type_cvt.go +++ b/compiler/ssa/type_cvt.go @@ -116,7 +116,7 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) { case *types.TypeParam: return typ.Underlying(), false case *types.Alias: - return types.Unalias(t), true + return p.cvtType(types.Unalias(t)) default: panic(fmt.Sprintf("cvtType: unexpected type - %T", typ)) }