Skip to content

Unitialized get,null properties cause runtime error #26

@nadako

Description

@nadako

For some reason, the (get,null) field stays unitialized (no self.s = None in __init__):

class Main
{
    var s(get, null):String;

    function get_s() return s;

    function new() {}

    static function main()
    {
        var m = new Main();
        m.s += "lol";
    }
}

Error:

AttributeError: 'Main' object has no attribute 's'

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