TypeScript/tests/cases/fourslash/goToImplementationInterface_09.ts
Andrew Casey 737fda928c Don't treat interfaces as implementations
...even if they're in ambient contexts.  Same for type aliases.
2019-01-17 15:45:01 -08:00

12 lines
350 B
TypeScript

/// <reference path='fourslash.ts'/>
// Should go to object literals within cast expressions when invoked on interface
// @Filename: def.d.ts
//// export interface Interface { P: number }
// @Filename: ref.ts
//// import { Interface } from "./def";
//// const c: I/*ref*/nterface = [|{ P: 2 }|];
verify.allRangesAppearInImplementationList("ref");