Skip to content

Commit

Permalink
Merge pull request #1744 from visualfc/types_cmdnoargs
Browse files Browse the repository at this point in the history
cl: fix callCmdNoArgs skip types record
  • Loading branch information
xushiwei committed Feb 14, 2024
2 parents 3ff7aef + 49c9ae4 commit bd54356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cl/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func compileExpr(ctx *blockCtx, expr ast.Expr, inFlags ...int) {
compileSelectorExpr(ctx, v, flags)
if cmdNoArgs {
callCmdNoArgs(ctx, expr, true)
return
}
case *ast.BinaryExpr:
compileBinaryExpr(ctx, v)
Expand Down
2 changes: 1 addition & 1 deletion x/typesutil/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ func OnKey__a(a, b string, v ...int) {
031: 33: 3 | onKey | func (*main.N).OnKey__8(x int, y int)`)
}

func _TestMixedOverload3(t *testing.T) { // TODO:
func TestMixedOverload3(t *testing.T) {
testGopInfo(t, `
Test
Test 100
Expand Down

0 comments on commit bd54356

Please sign in to comment.