Created
November 18, 2021 00:51
-
-
Save sandersn/efacf9b4d67f0c89faed44dbfa0d5f60 to your computer and use it in GitHub Desktop.
checker-error-examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async | |
let async | |
export const l = [1,2,3] | |
for (async of l) { | |
console.log(x) | |
} | |
Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement | |
for (let y, x in [1,2,3]) { | |
console.log(x) | |
} | |
Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; | |
for (let y, x of [1,2,3]) { | |
console.log(x) | |
} | |
Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer | |
for (const x = 1 in [1,2,3]) { | |
console.log(x) | |
} | |
Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; | |
for (const x = 1 of [1,2,3]) { | |
console.log(x) | |
} | |
Diagnostics._0_expected | |
class C { | |
get x(); | |
} | |
Diagnostics.A_get_accessor_cannot_have_parameters | |
class C { | |
get x(n) { return 1 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment