Skip to content

Unintelligible error message with @return(nullable) #6093

Open
@cknitt

Description

@cknitt

When you have @return(nullable) on an external definition for a function that does not return option, e.g.,

@return(nullable)
external someFunc: unit => bool = "someFunc"

you get the following rather incomprehensible error message:

%@return directive *_to_opt expect return type to be 
syntax wise `_ option` for safety

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions