You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
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?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
The text was updated successfully, but these errors were encountered: