rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
153 stars 47 forks source link

built-in ro* item in namespace function return not compatible with non-namespaced one #1162

Closed TwitchBronBron closed 2 months ago

TwitchBronBron commented 2 months ago

Here's a bug:

image

namespace alpha
    function getDate() as roDateTime
        theDate = createObject("roDateTime")
        return theDate
    end function
end namespace

function toUtcTime(localTime as roDateTime) as roDateTime
    theDate = alpha.getDate()
    return theDate
end function
markwpearce commented 2 months ago

Fixed in #1163