🐛 super gets removed in derived anonymous class (parse/noSuperWithoutExtends) #2108
Closed
1 task done
Labels
A-Analyzer
Area: analyzer
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
super() gets removed / marked as invalid
Error:
Super() is only valid in derived class constructors
https://biomejs.dev/playground/?code=YwBsAGEAcwBzACAATwB0AGgAZQByACAAewAKACAAIAAgACAAYwBvAG4AcwB0AHIAdQBjAHQAbwByACgAKQAgAHsACgAgACAAIAAgACAAIAAgACAAYwBvAG4AcwBvAGwAZQAuAGwAbwBnACgAIgAiACkACgAgACAAIAAgAH0ACgB9AAoACgBjAGwAYQBzAHMAIABFAHgAYQBtAHAAbABlACAAewAKACAAIAAgACAAdABlAHMAdAAoACkAIAB7AAoAIAAgACAAIAAgACAAIAAgAHIAZQB0AHUAcgBuACAAbgBlAHcAIABjAGwAYQBzAHMAIABlAHgAdABlAG4AZABzACAATwB0AGgAZQByACAAewAKAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAcAByAGkAdgBhAHQAZQAgAG8AdABoAGUAcgA6ACAAbgB1AG0AYgBlAHIAOwAKAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYwBvAG4AcwB0AHIAdQBjAHQAbwByACgAKQAgAHsACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAHMAdQBwAGUAcgAoACkAOwAKAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAB0AGgAaQBzAC4AbwB0AGgAZQByACAAPQAgADEAMAA7AAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAfQAKACAAIAAgACAAIAAgACAAIAB9ACgAKQA7AAoAIAAgACAAIAB9AAoAfQAKAA%3D%3D
Expected result
super should be allowed in derived anonymous class.
Code of Conduct
The text was updated successfully, but these errors were encountered: