1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
semantic/test/fixtures/go/method-declarations.B.go

15 lines
251 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {}
func (self Num) Equals(other Num) bool {}
func (p *Point) OtherLength() float64 {
return math.Sqrt(math.Pow(p.x, 2) + p.x + math.Pow(p.y, 2) + p.y)
}
func (q *Point) Scale(factor int) {
p.x *= factor
p.y *= factor
}