Files
tsgo/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictClass(target=es2015).errors.txt

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'.
}
}