!7 //import javax.validation.constraints.NotNull; sclass Bla { swappable S hello() { ret "yo"; } swappable void bla() {} swappable void blu(S s) { print(s); } persistently swappable void blo(S s) { print(s); } //swappable void notNullTest(@NotNull S s) { print(s); } } static swappable S staticTest() { null; } swappable static S staticTest2() { null; } swappable static S staticTest3(Long a, int b) { null; } swappable static bool staticTest4() { false; } swappable static LS staticTest5() { null; } p-exp { new Bla bla; // normal call assertEqualsVerbose("yo", bla.hello()); // override method at runtime (!) bla.hello = () -> "Here is random stuff: " + randomID(); // overridden call assertStartsWith_rev("Here is random stuff:", print(bla.hello())); print("OK"); }