X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fgo%2Ftypes%2Fresolver.go;h=f828344749b08d73dfd89b7a2d5bfedd686f96cb;hb=30de0b5ef4dda725f29fbdb88e1429a6dd3ae8cd;hp=8b6a1b4b79e0717021a114ab7484aaf021817acd;hpb=42bd21be1cf54876ce24c489852721049ef293e2;p=gostls13.git diff --git a/src/go/types/resolver.go b/src/go/types/resolver.go index 8b6a1b4b79..f828344749 100644 --- a/src/go/types/resolver.go +++ b/src/go/types/resolver.go @@ -659,13 +659,13 @@ func (check *Checker) packageObjects() { } } - if check.conf._EnableAlias { - // With _Alias nodes we can process declarations in any order. + if check.enableAlias { + // With Alias nodes we can process declarations in any order. for _, obj := range objList { check.objDecl(obj, nil) } } else { - // Without _Alias nodes, we process non-alias type declarations first, followed by + // Without Alias nodes, we process non-alias type declarations first, followed by // alias declarations, and then everything else. This appears to avoid most situations // where the type of an alias is needed before it is available. // There may still be cases where this is not good enough (see also go.dev/issue/25838).