Jaseci-Labs / jaclang

The Jac Programming Language
https://www.jac-lang.org
22 stars 21 forks source link

[BUG] Unable to Declare Enum Inside Architype #284

Closed kugesan1105 closed 7 months ago

kugesan1105 commented 8 months ago

Description When declaring an enum inside an architype in Jacang, it leads to an Internal Error .

Code to Reproduce

obj outer{
    has o1:int=9;

    obj inner{
        has i1:int=8;
    }
    can foo(){
        return 'foo';
    }
    enum color{
        red,
        green,
        blue
        }

}

Screenshot

image

Sivasuthan9 commented 7 months ago

@marsninja
pr:https://github.com/Jaseci-Labs/jaclang/pull/319