mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
16 lines
239 B
Lox
16 lines
239 B
Lox
class Base {
|
|
init(a, b) {
|
|
print "Base.init(" + a + ", " + b + ")";
|
|
}
|
|
}
|
|
|
|
class Derived < Base {
|
|
init() {
|
|
print "Derived.init()";
|
|
super.init("a", "b");
|
|
}
|
|
}
|
|
|
|
Derived();
|
|
// expect: Derived.init()
|
|
// expect: Base.init(a, b)
|