Discord
Login
Community
DARK THEME

Inheritance in MicroScript 2.0 from JavaScript code.

https://microstudio.io/i/Loginus/inheritance/

A class that is written in JavaScript and will be indicated as an ancestor of a class written in MicroScript 2 causes the class in MicroScript to function incorrectly.

Example >> https://microstudio.io/i/Loginus/inheritance/

The Second class in MicroScript 2 has access to the "name" variable but does not have access to any methods of the ancestor class.

It is actually more a limitation than a bug. JavaScript classes can be used from microScript (instances can be created and used normally), but a microScript class can only extend another microScript class.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community