DzLox

:)
git clone https://git.sr.ht/~ashymad/DzLox
Log | Files | Refs | Submodules | LICENSE

gaze.lox (260B)


      1 class A {
      2   method() {
      3     print "A method";
      4   }
      5 }
      6 
      7 class B < A {
      8   method() {
      9     print "B method";
     10   }
     11 
     12   test() {
     13     print "B";
     14     super.method();
     15     this.ola()
     16   }
     17 }
     18 
     19 class C < B {
     20 }
     21 
     22 class D < C {
     23     ola() {
     24         print "OLA!";
     25     }
     26 }
     27 
     28 D().test();