forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.errors.txt
More file actions
67 lines (51 loc) · 2.05 KB
/
Copy pathClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.errors.txt
File metadata and controls
67 lines (51 loc) · 2.05 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts(10,19): error TS2304: Cannot find name 'T'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts(20,12): error TS2304: Cannot find name 'T'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts(22,23): error TS2304: Cannot find name 'T'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts(35,26): error TS2304: Cannot find name 'T'.
tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts(46,15): error TS2304: Cannot find name 'T'.
==== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts (5 errors) ====
// all expected to be errors
class clodule1<T>{
id: string;
value: T;
}
module clodule1 {
function f(x: T) { }
~
!!! error TS2304: Cannot find name 'T'.
}
class clodule2<T>{
id: string;
value: T;
}
module clodule2 {
var x: T;
~
!!! error TS2304: Cannot find name 'T'.
class D<U extends T>{
~
!!! error TS2304: Cannot find name 'T'.
id: string;
value: U;
}
}
class clodule3<T>{
id: string;
value: T;
}
module clodule3 {
export var y = { id: T };
~
!!! error TS2304: Cannot find name 'T'.
}
class clodule4<T>{
id: string;
value: T;
}
module clodule4 {
class D {
name: T;
~
!!! error TS2304: Cannot find name 'T'.
}
}