Skip to content

Commit

Permalink
Merge pull request #1722 from xushiwei/t
Browse files Browse the repository at this point in the history
testdata/gop-sample
  • Loading branch information
xushiwei committed Feb 11, 2024
2 parents a461aff + 0ce9a04 commit d8b054e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions cl/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ func compileIdent(ctx *blockCtx, ident *ast.Ident, flags int) (pkg gox.PkgRef, k
goto find
}

// function alias
if compileFuncAlias(ctx, scope, ident, flags) {
return
}

// pkgRef object
if (flags & clIdentSelectorExpr) != 0 {
if name == "C" && len(ctx.clookups) > 0 {
Expand All @@ -139,6 +134,11 @@ func compileIdent(ctx *blockCtx, ident *ast.Ident, flags int) (pkg gox.PkgRef, k
}
}

// function alias
if compileFuncAlias(ctx, scope, ident, flags) {
return
}

// object from import . "xxx"
if compilePkgRef(ctx, gox.PkgRef{}, ident, flags, objPkgRef) {
return
Expand Down
5 changes: 0 additions & 5 deletions testdata/__gop-sample/go.mod

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions testdata/__gop-sample/gop.mod → testdata/gop-sample/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module gop-sample

go 1.21

gop 1.1
go 1.18
File renamed without changes.

0 comments on commit d8b054e

Please sign in to comment.