You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/spec.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -581,10 +581,10 @@ For this switch statement, the compiler will generate the following code.
581
581
582
582
```TypeScript
583
583
switch (op) {
584
-
case0/* Operator.ADD */:
584
+
case0/* Operator.ADD */:
585
585
// execute add
586
586
break;
587
-
case1/* Operator.DIV */:
587
+
case1/* Operator.DIV */:
588
588
// execute div
589
589
break;
590
590
// ...
@@ -738,7 +738,7 @@ var M;
738
738
returns;
739
739
}
740
740
M.f=f;
741
-
})(M||(M={}));
741
+
})(M|| (M={}));
742
742
```
743
743
744
744
In this case, the compiler assumes that the module object resides in global variable ‘M’, which may or may not have been initialized to the desired module object.
@@ -1068,7 +1068,7 @@ Type references (section [3.6.2](#3.6.2)) to class and interface types are class
1068
1068
1069
1069
### <aname="3.3.2"/>3.3.2 Array Types
1070
1070
1071
-
***Array types*** represent JavaScript arrays with a common element type. Array types are named type references created from the generic interface type ‘Array’ in the global module with the array element type as a type argument. Array type literals (section [Error! Reference source not found.](#Error! Reference source not found.)) provide a shorthand notation for creating such references.
1071
+
***Array types*** represent JavaScript arrays with a common element type. Array types are named type references created from the generic interface type ‘Array’ in the global module with the array element type as a type argument. Array type literals (section [3.6.4](#3.6.4)) provide a shorthand notation for creating such references.
1072
1072
1073
1073
The declaration of the ‘Array’ interface includes a property ‘length’ and a numeric index signature for the element type, along with other members:
0 commit comments