2017-09-25 18:02:42 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
////class C {
|
|
|
|
//// /** @return {number} */
|
2018-03-06 16:49:21 +01:00
|
|
|
//// get c() { return 12 }
|
2017-09-25 18:02:42 +02:00
|
|
|
////}
|
2018-03-06 16:49:21 +01:00
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Annotate with type from JSDoc",
|
|
|
|
newFileContent:
|
2017-09-25 18:02:42 +02:00
|
|
|
`class C {
|
|
|
|
/** @return {number} */
|
2018-03-08 20:47:30 +01:00
|
|
|
get c(): number { return 12 }
|
2018-03-06 16:49:21 +01:00
|
|
|
}`,
|
|
|
|
});
|