Skip to content

Function returning MRS values should explicitly return them #49

@t-b

Description

@t-b

Good:

Function [variable ret, string msg] DoSomething()

	return [4711, "some text"
End

Function [variable ret, string msg] DoSomething()

    ret = 4711
    msg = "some text"
	return [ret, msg]
End

Bad:

Function [variable ret, string msg] DoSomething()

    ret = 4711
    msg = "some text"
    // missing return statement
End

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions