| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/class-fields/static-public-fields-forbidden.case |
| 3 |
// - src/class-fields/propname-error-static/cls-expr-static-literal-name.template |
| 4 |
/*--- |
| 5 |
description: static public class fields forbidden (early error -- PropName of IdentifierName is forbidden) |
| 6 |
esid: sec-class-definitions-static-semantics-early-errors |
| 7 |
features: [class, class-fields-public] |
| 8 |
flags: [generated] |
| 9 |
negative: |
| 10 |
phase: parse |
| 11 |
type: SyntaxError |
| 12 |
---*/ |
| 13 |
|
| 14 |
|
| 15 |
throw "Test262: This statement should not be evaluated."; |
| 16 |
|
| 17 |
var C = class { |
| 18 |
static field; |
| 19 |
}; |