2017-06-09 23:52:01 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: /a.js
|
|
|
|
|
|
|
|
// Both uses of T should be referenced.
|
|
|
|
|
|
|
|
/////** @template [|{| "isWriteAccess": true, "isDefinition": true |}T|] */
|
|
|
|
////class C {
|
|
|
|
//// constructor() {
|
2018-04-20 00:58:43 +02:00
|
|
|
//// /** @type {[|T|]} */
|
2017-06-09 23:52:01 +02:00
|
|
|
//// this.x = null;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
2018-04-20 00:58:43 +02:00
|
|
|
verify.singleReferenceGroup("(type parameter) T in C<T>", test.ranges());
|