TypeScript/tests/cases/fourslash/referencesForMergedDeclarations2.ts
Nathan Shively-Sanders de4a69cb72
In source files and blocks, bind function declarations before other statements (#22766)
* Add test case and temporarily disable inference

(Inference of class members from this-assignments inside a
prototype-assigned function.)

* Update baselines

* In blocks and source files, bind functions first

* Add tests from other bugs

* Remove temporary failsafe

* Update tests to restore intent and clean up errors

* Restore intent even better

* Restore intent even better x2

* Add missed baselines
2018-03-21 14:22:09 -07:00

18 lines
463 B
TypeScript

/// <reference path='fourslash.ts'/>
////module ATest {
//// export interface Bar { }
////}
////
////function ATest() { }
////
////import [|{| "isWriteAccess": true, "isDefinition": true |}alias|] = ATest; // definition
////
////var a: [|alias|].Bar; // namespace
////[|alias|].call(this); // value
verify.singleReferenceGroup([
"(alias) function alias(): void",
"(alias) namespace alias",
"import alias = ATest"
].join("\n"));