mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
567 B
Plaintext
16 lines
567 B
Plaintext
//// [tests/cases/compiler/assertionWithNoArgument.ts] ////
|
|
|
|
=== assertionWithNoArgument.ts ===
|
|
export function assertWeird(value?: string): asserts value {
|
|
>assertWeird : Symbol(assertWeird, Decl(assertionWithNoArgument.ts, 0, 0))
|
|
>value : Symbol(value, Decl(assertionWithNoArgument.ts, 0, 28))
|
|
>value : Symbol(value, Decl(assertionWithNoArgument.ts, 0, 28))
|
|
}
|
|
|
|
assertWeird();
|
|
>assertWeird : Symbol(assertWeird, Decl(assertionWithNoArgument.ts, 0, 0))
|
|
|
|
assertWeird("hello");
|
|
>assertWeird : Symbol(assertWeird, Decl(assertionWithNoArgument.ts, 0, 0))
|
|
|