TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics18.ts

17 lines
358 B
TypeScript
Raw Normal View History

2015-03-18 00:56:19 +01:00
/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
////class C {
//// x; // Regular property declaration allowed
//// static y; // static allowed
//// public z; // public not allowed
////}
2015-03-18 00:56:19 +01:00
// @Filename: b.js
////class C {
//// x: number; // Types not allowed
////}
verify.baselineSyntacticDiagnostics()