We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 148a494 commit e349943Copy full SHA for e349943
2 files changed
tests/cases/conformance/statements/tryStatements/invalidTryStatements.ts
@@ -8,5 +8,10 @@ function fn() {
8
try { } catch (z: any) { }
9
try { } catch (a: number) { }
10
try { } catch (y: string) { }
11
+
12
13
+ try { } catch {
14
+ let _ignoredCatchParameter; // Should error since we downlevel emit this variable.
15
+ }
16
}
17
tests/cases/conformance/statements/tryStatements/tryStatements.ts
@@ -1,11 +1,10 @@
1
2
function fn() {
- try {
3
+ try { } catch { }
4
- } catch (x) {
5
- var x: any;
6
- }
+ try { } catch (x) { var x: any; }
7
try { } finally { }
- try { }catch(z){ } finally { }
+ try { } catch(z) { } finally { }
0 commit comments