We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d94f67 commit 2ac2ae0Copy full SHA for 2ac2ae0
liquidjava-example/src/main/java/testSuite/CorrectChars.java
@@ -2,6 +2,7 @@
2
3
import liquidjava.specification.Refinement;
4
5
+@SuppressWarnings("unused")
6
public class CorrectChars {
7
8
@Refinement("_ == 65")
@@ -19,4 +20,17 @@ void test() {
19
20
void printLetter(@Refinement("_ >= 65 && _ <= 90 || _ >= 97 && _ <= 122") char c) {
21
System.out.println(c);
22
}
23
+
24
+ void test2() {
25
+ @Refinement("_ == 97")
26
+ char c = 'a';
27
28
+ @Refinement("_ == 98")
29
+ int res = inc(c);
30
+ }
31
32
+ @Refinement("_ == x + 1")
33
+ int inc(int x) {
34
+ return x + 1;
35
36
0 commit comments