-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Methods in the standard library cannot currently access runtime bindings. In InvocationAstNode, it is determined whether the called function is a method by examining the parent symbol. However, the flags of the parent symbol are not checked for being part of the stdlib. This needs to be changed and ignoreRuntimeBindings needs to be set to false in the symbol table.
Example to reproduce the issue:
- Create an
Optionthat is set to an instance ofEmpty. - Call
get_value()on the instance w/out checking for whether theOptioncontains a value. - This should trigger a call to
runtime_panicinside theget_valuemethod. - Problem:
get_valuedoes not have access to the runtime binding, even thoughOptionis part of the stdlib and the flags are set correctly.
Reactions are currently unavailable