Skip to content

bug:unexpected gop overload function completion in go file #277

@luoliwoshang

Description

@luoliwoshang
image

Environment

go.mod

module test.com
go 1.21.4

use.gop

println "hello"

use.go

package main

import "test.com/def"

func _() {
	n := &def.N{}
	n.
}

def/overload.go

package def

const GopPackage = true

type N struct {
}

func (m *N) OnKey__0(a string, fn func()) {
}

func (m *N) OnKey__1(a string, fn func(key string)) {
}

func (m *N) OnKey__2(a []string, fn func()) {
}

func (m *N) OnKey__3(a []string, fn func(key string)) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions