Warning: session_start(): open(/var/lib/php/sessions/sess_nkg3ee8uiaee86k06h876amef3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass Bla {
swappable S hello() { ret "yo"; }
}
static swappable S staticTest() { null; }
swappable static S staticTest2() { null; }
swappable static S staticTest3(Long a, int b) { null; }
swappable static bool staticTest4() { false; }
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");
}