* Introduce literal freshness for literal enum members, allow enum references in ambient const initializers * Merge statements * Add enum literal readonly property test case * Accept better baselines post-merge
11 lines
133 B
TypeScript
11 lines
133 B
TypeScript
// @declaration: true
|
|
enum E {
|
|
A = 'a',
|
|
B = 'b'
|
|
}
|
|
|
|
class C {
|
|
readonly type = E.A;
|
|
}
|
|
|
|
let x: E.A = new C().type; |