whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
type T struct {
|
||||
}
|
||||
|
||||
func main() {
|
||||
t := T{}
|
||||
f1 := t.m1
|
||||
println(f1(1)) //break
|
||||
}
|
||||
|
||||
func (t T) m1(x int) int {
|
||||
return x + 1
|
||||
}
|
||||
Reference in New Issue
Block a user