mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
56 lines
2.8 KiB
Diff
56 lines
2.8 KiB
Diff
--- old.plainJSGrammarErrors.errors.txt
|
|
+++ new.plainJSGrammarErrors.errors.txt
|
|
@@= skipped -11, +11 lines =@@
|
|
plainJSGrammarErrors.js(26,11): error TS1030: 'async' modifier already seen.
|
|
plainJSGrammarErrors.js(28,11): error TS1029: 'static' modifier must precede 'async' modifier.
|
|
plainJSGrammarErrors.js(29,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
|
|
-plainJSGrammarErrors.js(29,5): error TS8009: The 'export' modifier can only be used in TypeScript files.
|
|
plainJSGrammarErrors.js(30,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
|
|
+plainJSGrammarErrors.js(34,5): error TS8017: Signature declarations can only be used in TypeScript files.
|
|
plainJSGrammarErrors.js(34,22): error TS1005: '{' expected.
|
|
plainJSGrammarErrors.js(35,9): error TS1054: A 'get' accessor cannot have parameters.
|
|
plainJSGrammarErrors.js(36,9): error TS1049: A 'set' accessor must have exactly one parameter.
|
|
@@= skipped -26, +26 lines =@@
|
|
plainJSGrammarErrors.js(60,7): error TS1030: 'async' modifier already seen.
|
|
plainJSGrammarErrors.js(61,1): error TS1042: 'async' modifier cannot be used here.
|
|
plainJSGrammarErrors.js(62,5): error TS1042: 'async' modifier cannot be used here.
|
|
-plainJSGrammarErrors.js(62,5): error TS8009: The 'async' modifier can only be used in TypeScript files.
|
|
plainJSGrammarErrors.js(64,1): error TS1042: 'async' modifier cannot be used here.
|
|
plainJSGrammarErrors.js(65,1): error TS1042: 'async' modifier cannot be used here.
|
|
plainJSGrammarErrors.js(66,1): error TS1042: 'async' modifier cannot be used here.
|
|
@@= skipped -64, +63 lines =@@
|
|
plainJSGrammarErrors.js(205,36): error TS1325: Argument of dynamic import cannot be spread element.
|
|
|
|
|
|
-==== plainJSGrammarErrors.js (102 errors) ====
|
|
+==== plainJSGrammarErrors.js (101 errors) ====
|
|
class C {
|
|
// #private mistakes
|
|
q = #unbound
|
|
@@= skipped -58, +58 lines =@@
|
|
export cantExportProperty = 1
|
|
~~~~~~
|
|
!!! error TS1031: 'export' modifier cannot appear on class elements of this kind.
|
|
- ~~~~~~
|
|
-!!! error TS8009: The 'export' modifier can only be used in TypeScript files.
|
|
export cantExportMethod() {
|
|
~~~~~~
|
|
!!! error TS1031: 'export' modifier cannot appear on class elements of this kind.
|
|
@@= skipped -9, +7 lines =@@
|
|
|
|
// accessor mistakes
|
|
get incorporeal();
|
|
+ ~~~~~~~~~~~~~~~~~~
|
|
+!!! error TS8017: Signature declarations can only be used in TypeScript files.
|
|
~
|
|
!!! error TS1005: '{' expected.
|
|
get parametric(n) { return 1 }
|
|
@@= skipped -76, +78 lines =@@
|
|
async cantAsyncPropert = 1
|
|
~~~~~
|
|
!!! error TS1042: 'async' modifier cannot be used here.
|
|
- ~~~~~
|
|
-!!! error TS8009: The 'async' modifier can only be used in TypeScript files.
|
|
}
|
|
async const cantAsyncConst = 2
|
|
~~~~~
|