Skip to content

Declared variable not read within lambda scope #3

Description

@wei3hua2

Expected Behaviour

Variable declared should also be read within lambda context

Current Behavior

Throws reference error when called within lambda.
ERROR : ReferenceError: $<var> is not defined

Steps to Reproduce

  1. rps install basic
  2. Create a new file.rps
  3. copy the below code.
assign 'temp' 123
assign 'v' ($x)=>log $temp

call $v 'dummy'
  1. run rps file.rps

Context

rpscript - 0.3.1

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions