Skip to content

Commit

Permalink
tests improved, bug in (issue #58 detected):
Browse files Browse the repository at this point in the history
- return statements need to be executed after post-event (since nothing gets executed after return)
  • Loading branch information
miho committed Aug 19, 2015
1 parent 383f9ec commit 0e68a3a
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* global comment*/

package my.testpackage;

/**
* class MyFileClass
*/
@eu.mihosoft.vrl.instrumentation.VRLVisualization
public class MyFileClass {

private MyFileClass m1(int a) {
println(a)
return this;
}

private MyFileClass m2() {
return new MyFileClass().m1(1).m1(2);
}

public static void main(String[] args) {
new MyFileClass().m2();
}
}

0 comments on commit 0e68a3a

Please sign in to comment.