Skip to content

[Bug]: Invalid error message: must be resource function instead of resource_func #43815

Open
@dulajdilshan

Description

@dulajdilshan

Description

Image

Steps to Reproduce

service class Person {
    resource function get age() returns int {
        do {
        } on fail error err {
            //handle error
        }
    }
}

Affected Version(s)

2201.9.2

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions