forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloduleAsBaseClass2.ts
More file actions
52 lines (46 loc) · 1.27 KB
/
Copy pathcloduleAsBaseClass2.ts
File metadata and controls
52 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/// <reference path='fourslash.ts'/>
// @Filename: cloduleAsBaseClass2_0.ts
////class A {
//// constructor(x: number) { }
//// foo() { }
//// static bar() { }
////}
////
////module A {
//// export var x = 1;
//// export function baz() { }
////}
////
////export = A;
// @Filename: cloduleAsBaseClass2_1.ts
////import B = require('cloduleAsBaseClass2_0');
////class D extends B {
//// constructor() {
//// super(1);
//// }
//// foo2() { }
//// static bar2() { }
////}
////
////var d: D;
////d./*1*/
////D./*2*/
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
edit.insert('');
goTo.marker('1');
verify.completionListContains('foo');
verify.completionListContains('foo2');
verify.not.completionListContains('bar');
verify.not.completionListContains('bar2');
verify.not.completionListContains('baz');
verify.not.completionListContains('x');
edit.insert('foo()');
goTo.marker('2');
verify.not.completionListContains('foo');
verify.not.completionListContains('foo2');
verify.completionListContains('bar');
verify.completionListContains('bar2');
verify.completionListContains('baz');
verify.completionListContains('x');
edit.insert('bar()');
verify.numberOfErrorsInCurrentFile(0);