diff --git a/go-runtime/compile/build.go b/go-runtime/compile/build.go index 4a440fd2eb..1cfe7cebdb 100644 --- a/go-runtime/compile/build.go +++ b/go-runtime/compile/build.go @@ -521,7 +521,7 @@ var scaffoldFuncs = scaffolder.FuncMap{ }, "typeAliasType": func(m *schema.Module, t *schema.TypeAlias) string { if _, goType := getGoExternalTypeForWidenedType(t); goType != "" { - return goType + return "= " + goType } return genType(m, t.Type) },