mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
624 B
Plaintext
20 lines
624 B
Plaintext
//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts] ////
|
|
|
|
=== blockScopedFunctionDeclarationInStrictClass.ts ===
|
|
class c {
|
|
>c : Symbol(c, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 0, 0))
|
|
|
|
method() {
|
|
>method : Symbol(c.method, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 0, 9))
|
|
|
|
if (true) {
|
|
function foo() { }
|
|
>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 2, 19))
|
|
|
|
foo(); // ok
|
|
>foo : Symbol(foo, Decl(blockScopedFunctionDeclarationInStrictClass.ts, 2, 19))
|
|
}
|
|
foo(); // not ok
|
|
}
|
|
}
|