|
| 1 | +/// <reference path="fourslash.ts" /> |
| 2 | + |
| 3 | +////class Foo<T extends { x: 'one' | 'two' }> {} |
| 4 | +////function foo<T extends { x: 'one' | 'two' }>() {} |
| 5 | +////declare function tag<T extends { x: 'one' | 'two' }>(x: TemplateStringsArray): void; |
| 6 | +////declare function decorator<T extends { x: 'one' | 'two' }>(...args: unknown[]): never |
| 7 | +//// |
| 8 | +////type A = Foo<{ x: '/*0*/' }>; |
| 9 | +////new Foo<{ x: '/*1*/' }>(); |
| 10 | +////foo<{ x: '/*2*/' }>(); |
| 11 | +////foo<{ x: '/*3*/' }>; |
| 12 | +////Foo<{ x: '/*4*/' }>; |
| 13 | +////tag<{ x: '/*5*/' }>``; |
| 14 | +////class { @decorator<{ x: '/*6*/' }>; method() {} } |
| 15 | + |
| 16 | +verify.completions( |
| 17 | + { marker: "0", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 18 | + { marker: "1", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 19 | + { marker: "2", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 20 | + { marker: "3", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 21 | + { marker: "4", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 22 | + { marker: "5", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 23 | + { marker: "6", unsorted: ["one", "two"], isNewIdentifierLocation: false }, |
| 24 | +); |
0 commit comments