mirror of
https://github.com/tc39/test262.git
synced 2025-06-18 21:10:33 +02:00
16 lines
393 B
Plaintext
16 lines
393 B
Plaintext
// Copyright (C) 2017 Valerie Young. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-class-definitions-static-semantics-early-errors
|
|
path: language/statements/class/fields-ternary-
|
|
name: ternary expression
|
|
features: [class, class-fields-public]
|
|
---*/
|
|
|
|
failIfCodeGetsEvaluated();
|
|
|
|
class C {
|
|
x = false ? {} : /*{ initializer }*/;
|
|
}
|