Repository navigation
Report error if class uses extended type before its declaration - #4343
Sheetal Nandi (sheetalkamat) wants to merge 20 commits into
Conversation
There was a problem hiding this comment.
i would also add a test with an expression in an extend clause, class A extends foo(0)<string> {}
and one for module aliases
import d from "mod";
class B extends d { // no error here
}There was a problem hiding this comment.
added this
… report error Fixes #4244
|
I am still working on reporting error if alias is declared before it is referencing entity(internal alias only) |
There was a problem hiding this comment.
Why are they allowed to be in different lexical scopes?
There was a problem hiding this comment.
use ts.indexOf instead of array.prototype.indexof
There was a problem hiding this comment.
Fix spacing at the end of the line
There was a problem hiding this comment.
isDefinedBeforeOrAt
|
This PR is superseded by #8636 which has been successfully merged, right? |
|
closing in favor of #8636 |
Fixes #4341