rokucommunity / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
4 stars 2 forks source link

Global functions `GetInterface()` and `FindMemberFunction()` are not properly boxing parameters #41

Closed lvcabral closed 6 months ago

lvcabral commented 6 months ago

The code below:

    print FindMemberFunction({}, "Count")
    print GetInterface({}, "ifenum")
    print FindMemberFunction("", "left")
    print GetInterface("", "ifStringOps")
    print FindMemberFunction(1, "tostr")
    print GetInterface(1, "iftostr")

should display:

    <Interface: ifAssociativeArray>
    <Interface: ifEnum>
    <Interface: ifStringOps>
    <Interface: ifStringOps>
    <Interface: ifIntOps>
    <Interface: ifToStr>

Reference: https://developer.roku.com/en-gb/docs/references/brightscript/language/global-utility-functions.md