Skip to content

A funcRef can be a default value for a function parameter #192

Description

@Withered-Flower-0422
> f = function
>>> print "f"
>>> end function
> a = function(x=@f) // This should throw a Compiler Error: parameter default value must be a literal value
>>> print x
>>> end function
> a
@f 
> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions