Skip to content

Immutable field annotation interact with initialization checker #42

@aosen-xiong

Description

@aosen-xiong

Despite PICO is not up to date at the moment, I will use issues to make notes for myself and leave a comment section for discussion of desired behaviour.

public class Demo {
   @Immutable Object o1, o2;

    Demo(Object obj1, Object obj2) {
    }
}

I think we are expecting fields not initialized error, but right now there is now errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions