Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testdata/gop-sample #1722

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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.