Skip to content

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

@AnnaShaleva

Description

@AnnaShaleva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I4No visible changesS4RoutineU3RegularbugSomething isn't workingcompilerGo smart contract compiler

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions