Skip to content

Commit

Permalink
goplus#1847 call static method
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Apr 12, 2024
1 parent 2b4184f commit e1ef219
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cl/compile_gop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,8 @@ func foo.New(a int) *foo {
func foo._add() *foo {
return new(foo)
}
a := foo.new(100)
`, `package main
type foo int
Expand All @@ -1563,5 +1565,8 @@ func Gops_foo_New(a int) *foo {
func Gops__foo___add() *foo {
return new(foo)
}
func main() {
a := Gops_foo_New(100)
}
`)
}

0 comments on commit e1ef219

Please sign in to comment.