Skip to content

This should not typecheck, but it typechecks #11

Description

@FrogOfJuly
@Ghost("int some_other_ghost")
public class Test2 {
    int n = 0;

    @StateRefinement(from="some_other_ghost(this) > 0", to="some_other_ghost(this) < 0")
    private void f(){}

    private void shouldFail(){
        f();
        f();
    }

    public static void main(String[] args) {
        Test2 t = new Test2();
        t.shouldFail();
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions