15 lines
No EOL
299 B
TypeScript
15 lines
No EOL
299 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowJs: true
|
|
// @Filename: a.js
|
|
//// public function F() { }
|
|
|
|
verify.getSemanticDiagnostics(`[
|
|
{
|
|
"message": "'public' can only be used in a .ts file.",
|
|
"start": 0,
|
|
"length": 6,
|
|
"category": "error",
|
|
"code": 8009
|
|
}
|
|
]`); |