Skip to content

Classfile variables initialization #2522

@xushiwei

Description

@xushiwei

We cannot initialize classfile variables yet. The following code is incorrect:

var (
    name1 V1 = initExpr1
    name2 V2 = initExpr2
)

We may have to use the following code as a workaround.

var (
    name1 V1 
    name2 V2
)

name1 = initExpr1
name2 = initExpr2

Let's stop this workaround and officially support the initialization of classfile variables.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions