Open AnnaShaleva opened 1 month ago
Our compiler does not include anonymous functions into the methods list of debug info:
methods
func PublicContractMethod() { var f = func() { runtime.Log("bla") } f() f() }
See also thread under https://github.com/nspcc-dev/neo-go/issues/3559#issuecomment-2416866538.
Anonymous functions should be included into the methods list of debug info with some dynamic name that is not intersected with existing method names. A good example is given in https://github.com/nspcc-dev/neo-go/issues/3559#issuecomment-2417834451.
Fix it.
Current Behavior
Our compiler does not include anonymous functions into the
methods
list of debug info:See also thread under https://github.com/nspcc-dev/neo-go/issues/3559#issuecomment-2416866538.
Expected Behavior
Anonymous functions should be included into the
methods
list of debug info with some dynamic name that is not intersected with existing method names. A good example is given in https://github.com/nspcc-dev/neo-go/issues/3559#issuecomment-2417834451.Possible Solution
Fix it.