gopherdata / gopherdata/gophernotes
not a package: "n" in n.multiply <*ast.SelectorExpr>
未关闭
bug
- 主要语言
- Go
- 星标
- 4k
- 派生
- 264
- 平均合并
- 7 天 21 小时
- 30 天内合并 PR
- 1
描述
```go
type Node struct {
value int
next *Node
}
func (n Node) multiply(x int) int {
return n.value * x
}
n := Node{2, nil}
n.multiply(3)
```
repl.go:11:1: not a package: "n" in n.multiply <*ast.SelectorExpr>
However, this works:
```go
type Node struct {
value int
}
func (n Node) multiply(x int) int {
return n.value * x
}
n := Node{2}
n.multiply(3)
```
Versions:
- go version go1.19.2 linux/amd64
- gophernotes@v0.7.5
Related to #240
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。