mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
add test for completions crash
This commit is contained in:
18
tests/cases/fourslash/completionsWrappedClass.ts
Normal file
18
tests/cases/fourslash/completionsWrappedClass.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////class Client {
|
||||
//// private close() { }
|
||||
//// public open() { }
|
||||
////}
|
||||
////type Wrap<T> = T &
|
||||
////{
|
||||
//// [K in Extract<keyof T, string> as `${K}Wrapped`]: T[K];
|
||||
////};
|
||||
////class Service {
|
||||
//// method() {
|
||||
//// let service = undefined as unknown as Wrap<Client>;
|
||||
//// const { /*a*/ } = service;
|
||||
//// }
|
||||
////}
|
||||
|
||||
verify.completions({ marker: "a", exact: ["open", "openWrapped"] });
|
||||
Reference in New Issue
Block a user