Skip to content

Enum2#85

Draft
PXshadow wants to merge 18 commits intomasterfrom
enum2
Draft

Enum2#85
PXshadow wants to merge 18 commits intomasterfrom
enum2

Conversation

@PXshadow
Copy link
Copy Markdown
Contributor

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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant