GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — False error: a call used as an operand loses the link between its return refinement and its arguments · Issue #405 · liquid-java/liquidjava Open Labels bugSomething isn't workingSomething isn't working DescriptionImpact: correct code is rejected (false error) whenever a method's return refinement mentions its parameters and the call is an operand of an expression. Found while addressing a review comment on #400. Description
Minimal reproducer import liquidjava.specification.Refinement; class Inc { @Refinement("_ == x + 1") static int inc(int x) { return x + 1; } @Refinement("_ == length(xs)") static int size(int[] xs) { return xs.length; } void m() { @Refinement("_ == 4") int k = inc(2) + 1; int[] arr = new int[2]; @Refinement("_ == 3") int j = size(arr) + 1; } } Expected
Actual (main ad055b4) Possible fix For an invocation operand, check the call like a standalone invocation ( ActivityMetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |