mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
412 B
Plaintext
15 lines
412 B
Plaintext
blockScopedFunctionDeclarationInStrictClass.ts(7,9): error TS2304: Cannot find name 'foo'.
|
|
|
|
|
|
==== blockScopedFunctionDeclarationInStrictClass.ts (1 errors) ====
|
|
class c {
|
|
method() {
|
|
if (true) {
|
|
function foo() { }
|
|
foo(); // ok
|
|
}
|
|
foo(); // not ok
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'foo'.
|
|
}
|
|
} |