18 lines
405 B
TypeScript
18 lines
405 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @checkJs: true
|
|
// @allowJs: true
|
|
|
|
// @Filename: a.js
|
|
////[|class C {
|
|
//// constructor() {
|
|
//// }
|
|
//// prop = ()=>{ this.foo === 10 };
|
|
////}|]
|
|
|
|
verify.rangeAfterCodeFix(`class C {
|
|
constructor() {
|
|
this.foo = undefined;
|
|
}
|
|
prop = ()=>{ this.foo === 10 };
|
|
}`, /*includeWhiteSpace*/false, /*errorCode*/ undefined, /*index*/ 0); |