File: invalidModuleWithStatementsOfEveryKind.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (163 lines) | stat: -rw-r--r-- 2,363 bytes parent folder | download | duplicates (5)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
=== tests/cases/conformance/internalModules/moduleBody/invalidModuleWithStatementsOfEveryKind.ts ===
// All of these should be an error

module Y {
>Y : typeof Y

    public class A { s: string }
>A : A
>s : string

    public class BB<T> extends A {
>BB : BB<T>
>A : A

        id: number;
>id : number
    }
}

module Y2 {
>Y2 : typeof Y2

    public class AA<T> { s: T }
>AA : AA<T>
>s : T

    public interface I { id: number }
>id : number

    public class B extends AA<string> implements I { id: number }
>B : B
>AA : AA<string>
>id : number
}

module Y3 {
>Y3 : typeof Y3

    public module Module {
>Module : typeof Module

        class A { s: string }
>A : A
>s : string
    }
}

module Y4 {
>Y4 : typeof Y4

    public enum Color { Blue, Red }
>Color : Color
>Blue : Color.Blue
>Red : Color.Red
}

module YY {
>YY : typeof YY

    private class A { s: string }
>A : A
>s : string

    private class BB<T> extends A {
>BB : BB<T>
>A : A

        id: number;
>id : number
    }
}

module YY2 {
>YY2 : typeof YY2

    private class AA<T> { s: T }
>AA : AA<T>
>s : T

    private interface I { id: number }
>id : number

    private class B extends AA<string> implements I { id: number }
>B : B
>AA : AA<string>
>id : number
}

module YY3 {
>YY3 : typeof YY3

    private module Module {
>Module : typeof Module

        class A { s: string }
>A : A
>s : string
    }
}

module YY4 {
>YY4 : typeof YY4

    private enum Color { Blue, Red }
>Color : Color
>Blue : Color.Blue
>Red : Color.Red
}


module YYY {
>YYY : typeof YYY

    static class A { s: string }
>A : A
>s : string

    static class BB<T> extends A {
>BB : BB<T>
>A : A

        id: number;
>id : number
    }
}

module YYY2 {
>YYY2 : typeof YYY2

    static class AA<T> { s: T }
>AA : AA<T>
>s : T

    static interface I { id: number }
>id : number

    static class B extends AA<string> implements I { id: number }
>B : B
>AA : AA<string>
>id : number
}

module YYY3 {
>YYY3 : typeof YYY3

    static module Module {
>Module : typeof Module

        class A { s: string }
>A : A
>s : string
    }
}

module YYY4 {
>YYY4 : typeof YYY4

    static enum Color { Blue, Red }
>Color : Color
>Blue : Color.Blue
>Red : Color.Red
}