gopherdata / gopherdata/gophernotes

not a package: "n" in n.multiply <*ast.SelectorExpr>

オープン
#254 コメント 1 件 リアクション 0 件 担当者 1 名 @cosmos72 が担当を希望しています GitHub で見る
bug
主要言語
Go
スター
4k
フォーク
264
平均マージ
7日 21時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。