Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include anonymous functions into the list of methods in DebugInfo #3619

Open
AnnaShaleva opened this issue Oct 17, 2024 · 0 comments
Open

Include anonymous functions into the list of methods in DebugInfo #3619

AnnaShaleva opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working compiler Go smart contract compiler I4 No visible changes S4 Routine U3 Regular

Comments

@AnnaShaleva
Copy link
Member

Current Behavior

Our compiler does not include anonymous functions into the methods list of debug info:

func PublicContractMethod() {
	var f = func() {
		runtime.Log("bla")
	}

	f()
	f()
}

See also thread under #3559 (comment).

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 #3559 (comment).

Possible Solution

Fix it.

@AnnaShaleva AnnaShaleva added bug Something isn't working compiler Go smart contract compiler U3 Regular U2 Seriously planned S4 Routine I4 No visible changes labels Oct 17, 2024
@roman-khimov roman-khimov removed the U2 Seriously planned label Oct 17, 2024
@roman-khimov roman-khimov changed the title Include anonimous functions into the list of methods in DebugInfo Include anonymous functions into the list of methods in DebugInfo Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler Go smart contract compiler I4 No visible changes S4 Routine U3 Regular
Projects
None yet
Development

No branches or pull requests

2 participants