-
Notifications
You must be signed in to change notification settings - Fork 60
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
内置接口类型 error 无法解析 #96
Comments
On 9 April 2024 11:32:02 CEST, Sgmwei ***@***.***> wrote:
darwin/arm64 (macbook m1 air)
golang1.21.8
```
type (
IDo interface {
Do() error
}
Struct1 struct{}
)
func (Struct1) Do() error {
The receiver needs a name, not only a type.
… fmt.Print("DO SOMETHING\n")
return nil
}
func NewStructX() IDo {
return Struct1{}
}
```
加载上述测试文件将报错`unresolve external:type:error`
--
Liebe Grüße 🙋🏼♂️
Matthias
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST M$ ATTACHMENTS
/ \
http://www.asciiribbon.org/
|
Tks for pointing out my grammar is not complete, but this does not affect the occurrence of errors. by the way, goloader 's version is |
Seems to work on my fork… eh-steve@d53913e |
When registering a type without a package name, registerType() will resolve its name. but when this type is an interface, it get a different name. |
So what's your suggest if I want to continue using your branch ?😯 |
darwin/arm64 (macbook m1 air)
golang1.21.8
加载上述测试文件将报错
unresolve external:type:error
The text was updated successfully, but these errors were encountered: