mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
614 B
Plaintext
16 lines
614 B
Plaintext
functionExpressionInWithBlock.ts(2,2): error TS1101: 'with' statements are not allowed in strict mode.
|
|
functionExpressionInWithBlock.ts(2,2): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
|
|
|
|
|
|
==== functionExpressionInWithBlock.ts (2 errors) ====
|
|
function x() {
|
|
with({}) {
|
|
~~~~
|
|
!!! error TS1101: 'with' statements are not allowed in strict mode.
|
|
~~~~~~~~
|
|
!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
|
|
function f() {
|
|
() => this;
|
|
}
|
|
}
|
|
} |