Skip to content

Commit 134e4ba

Browse files
committed
chore: update test snapshot
1 parent 5704946 commit 134e4ba

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
tests/cases/compiler/escapedIdentifiers.ts(86,23): error TS17019: Unicode escape sequence cannot appear here.
2+
tests/cases/compiler/escapedIdentifiers.ts(88,23): error TS17019: Unicode escape sequence cannot appear here.
3+
4+
5+
==== tests/cases/compiler/escapedIdentifiers.ts (2 errors) ====
6+
/*
7+
0 .. \u0030
8+
9 .. \u0039
9+
10+
A .. \u0041
11+
Z .. \u005a
12+
13+
a .. \u0061
14+
z .. \u00za
15+
*/
16+
17+
// var decl
18+
var \u0061 = 1;
19+
a ++;
20+
\u0061 ++;
21+
22+
var b = 1;
23+
b ++;
24+
\u0062 ++;
25+
26+
// modules
27+
module moduleType1 {
28+
export var baz1: number;
29+
}
30+
module moduleType\u0032 {
31+
export var baz2: number;
32+
}
33+
34+
moduleType1.baz1 = 3;
35+
moduleType\u0031.baz1 = 3;
36+
moduleType2.baz2 = 3;
37+
moduleType\u0032.baz2 = 3;
38+
39+
// classes
40+
41+
class classType1 {
42+
public foo1: number;
43+
}
44+
class classType\u0032 {
45+
public foo2: number;
46+
}
47+
48+
var classType1Object1 = new classType1();
49+
classType1Object1.foo1 = 2;
50+
var classType1Object2 = new classType\u0031();
51+
classType1Object2.foo1 = 2;
52+
var classType2Object1 = new classType2();
53+
classType2Object1.foo2 = 2;
54+
var classType2Object2 = new classType\u0032();
55+
classType2Object2.foo2 = 2;
56+
57+
// interfaces
58+
interface interfaceType1 {
59+
bar1: number;
60+
}
61+
interface interfaceType\u0032 {
62+
bar2: number;
63+
}
64+
65+
var interfaceType1Object1 = <interfaceType1>{ bar1: 0 };
66+
interfaceType1Object1.bar1 = 2;
67+
var interfaceType1Object2 = <interfaceType\u0031>{ bar1: 0 };
68+
interfaceType1Object2.bar1 = 2;
69+
var interfaceType2Object1 = <interfaceType2>{ bar2: 0 };
70+
interfaceType2Object1.bar2 = 2;
71+
var interfaceType2Object2 = <interfaceType\u0032>{ bar2: 0 };
72+
interfaceType2Object2.bar2 = 2;
73+
74+
75+
// arguments
76+
class testClass {
77+
public func(arg1: number, arg\u0032: string, arg\u0033: boolean, arg4: number) {
78+
arg\u0031 = 1;
79+
arg2 = 'string';
80+
arg\u0033 = true;
81+
arg4 = 2;
82+
}
83+
}
84+
85+
// constructors
86+
class constructorTestClass {
87+
constructor (public arg1: number,public arg\u0032: string,public arg\u0033: boolean,public arg4: number) {
88+
}
89+
}
90+
var constructorTestObject = new constructorTestClass(1, 'string', true, 2);
91+
constructorTestObject.arg\u0031 = 1;
92+
~~~~~~~~~
93+
!!! error TS17019: Unicode escape sequence cannot appear here.
94+
constructorTestObject.arg2 = 'string';
95+
constructorTestObject.arg\u0033 = true;
96+
~~~~~~~~~
97+
!!! error TS17019: Unicode escape sequence cannot appear here.
98+
constructorTestObject.arg4 = 2;
99+
100+
// Lables
101+
102+
l\u0061bel1:
103+
while (false)
104+
{
105+
while(false)
106+
continue label1; // it will go to next iteration of outer loop
107+
}
108+
109+
label2:
110+
while (false)
111+
{
112+
while(false)
113+
continue l\u0061bel2; // it will go to next iteration of outer loop
114+
}
115+
116+
label3:
117+
while (false)
118+
{
119+
while(false)
120+
continue label3; // it will go to next iteration of outer loop
121+
}
122+
123+
l\u0061bel4:
124+
while (false)
125+
{
126+
while(false)
127+
continue l\u0061bel4; // it will go to next iteration of outer loop
128+
}

0 commit comments

Comments
 (0)