liquid-java / liquid-java/liquidjava
This should not typecheck, but it typechecks
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- Java
- 星标
- 67
- 派生
- 36
- 平均合并
- 10 天 18 小时
- 30 天内合并 PR
- 3
描述
```
@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();
}
}
```
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 issue 中的 Java 代码片段作为复现用例,并针对它运行 LiquidJava 的类型检查器。跟踪为什么在给定状态细化的情况下对 f() 的两次调用仍会被接受,然后验证检查器会拒绝此示例,同时保留预期的细化行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100