mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
470 B
Plaintext
11 lines
470 B
Plaintext
// === Syntax and Semantic Diagnostics ===
|
|
/a.js(1,1): error TS1044: 'public' modifier cannot appear on a module or namespace element.
|
|
/a.js(1,1): error TS8009: The 'public' modifier can only be used in TypeScript files.
|
|
|
|
|
|
==== /a.js (2 errors) ====
|
|
public function F() { }
|
|
~~~~~~
|
|
!!! error TS1044: 'public' modifier cannot appear on a module or namespace element.
|
|
~~~~~~
|
|
!!! error TS8009: The 'public' modifier can only be used in TypeScript files. |