Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

Enum2 - #85

Draft
PXshadow wants to merge 18 commits into
masterfrom
enum2
Draft

Enum2#85
PXshadow wants to merge 18 commits into
masterfrom
enum2

Conversation

@PXshadow

Copy link
Copy Markdown
Collaborator
import go.Fmt;

function main() {
    Fmt.println(get().getName());
    Fmt.println(get().getIndex());
    Fmt.println(get2().getIndex());
}

class Foo2 {}

function get()
    return Foo.A;

function get2()
    return Foo.B;


enum Foo {
    A;
    B;
    C(f:Foo);
}

@PXshadow
PXshadow marked this pull request as draft March 22, 2026 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant