mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
669 B
Plaintext
17 lines
669 B
Plaintext
//// [tests/cases/conformance/controlFlow/definiteAssignmentAssertionsWithObjectShortHand.ts] ////
|
|
|
|
=== definiteAssignmentAssertionsWithObjectShortHand.ts ===
|
|
const a: string | undefined = 'ff';
|
|
>a : Symbol(a, Decl(definiteAssignmentAssertionsWithObjectShortHand.ts, 0, 5))
|
|
|
|
const foo = { a! }
|
|
>foo : Symbol(foo, Decl(definiteAssignmentAssertionsWithObjectShortHand.ts, 1, 5))
|
|
>a : Symbol(a, Decl(definiteAssignmentAssertionsWithObjectShortHand.ts, 1, 13))
|
|
|
|
const bar = {
|
|
>bar : Symbol(bar, Decl(definiteAssignmentAssertionsWithObjectShortHand.ts, 3, 5))
|
|
|
|
a ? () { }
|
|
>a : Symbol(a, Decl(definiteAssignmentAssertionsWithObjectShortHand.ts, 3, 13))
|
|
}
|