Open GaetanRole opened 8 years ago
The script hierarchy matters in Superpowers so your AObstacleBehavior must be defined before the HighObstacleBehavior. Looks like TypeScript doesn't throw an error in this case because it's a class. Not sure what we could/should do about it. Any idea @elisee?
If the classes are in the same file, then there will be an error:
// TypeScript complains here
class B extends A {
}
abstract class A {
}
Not sure why we don't get errors when they are in different files. Maybe we have to tell the TypeScript compiler in which order the files will be concatenated, if that's possible?
Hi,
Whenever I try to subclass Sup.Behavior I get an error like this one:
Is this not supported? I think it can be very useful to factor some common logic.
Here is my setup: