notobj.gravity 248 B

123456789101112131415161718192021
  1. #unittest {
  2. name: "Operator NOT on obj.";
  3. result: 133;
  4. };
  5. class foo {
  6. }
  7. func main() {
  8. var a = null;
  9. var b = foo();
  10. var count = 0;
  11. if (a) count += 10;
  12. if (!a) count += 33;
  13. if (b) count += 100;
  14. if (!b) count += 333;
  15. return count;
  16. }