Use heritage for cases checking early errors with super

This commit is contained in:
Leo Balter 2018-09-05 16:56:58 -04:00 committed by Rick Waldron
parent 938915ddb5
commit 84ca816378
10 changed files with 30 additions and 0 deletions

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [async-iteration]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
async * method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [async-functions]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
async method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [generators]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
* method() {
super();

View File

@ -11,6 +11,9 @@ info: |
template: syntax/invalid
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
get method() {
super();

View File

@ -11,6 +11,9 @@ info: |
template: syntax/invalid
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [async-iteration, class-methods-private]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
async * #method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [async-functions, class-methods-private]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
async #method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [generators, class-methods-private]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
* #method() {
super();

View File

@ -12,6 +12,9 @@ template: syntax/invalid
features: [class-methods-private]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
#method() {
super();

View File

@ -11,6 +11,9 @@ info: |
template: syntax/invalid
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
set method(_) {
super();