File tree 2 files changed +23
-3
lines changed
2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ email = 'test@example.com';
7
7
email = 'test@gmail.com' ;
8
8
gmail = 'test@example.com' ;
9
9
gmail = 'test@gmail.com' ;
10
+
10
11
gmail = email ;
11
12
email = gmail ;
12
-
13
13
gmail = < Gmail > email ;
14
14
if ( Gmail . test ( email ) ) {
15
15
gmail = email ;
@@ -18,17 +18,23 @@ if (Gmail.test(email)) {
18
18
let someEmail = 'test@example.com' ;
19
19
let someGmail = 'test@gmail.com' ;
20
20
email = someEmail ;
21
+ email = someGmail ;
22
+ gmail = someEmail ;
21
23
gmail = someGmail ;
22
24
email = < Email > someEmail ;
23
25
gmail = < Gmail > someGmail ;
24
26
if ( Email . test ( someEmail ) ) {
25
27
email = someEmail ;
28
+ gmail = someEmail ;
26
29
}
27
30
if ( Gmail . test ( someGmail ) ) {
31
+ email = someGmail ;
28
32
gmail = someGmail ;
29
33
}
30
34
31
35
let someEmailLiteral : 'test@example.com' = 'test@example.com' ;
32
36
let someGmailLiteral : 'test@gmail.com' = 'test@gmail.com' ;
33
37
email = someEmailLiteral ;
38
+ email = someGmailLiteral ;
39
+ gmail = someEmailLiteral ;
34
40
gmail = someGmailLiteral ;
Original file line number Diff line number Diff line change @@ -31,5 +31,19 @@ collection[<Email>someEmail].usersProperty;
31
31
collection [ < Email > someEmail ] . gmailProperty ;
32
32
collection [ < Gmail > someGmail ] . usersProperty ;
33
33
collection [ < Gmail > someGmail ] . gmailProperty ;
34
- collection [ < Email & Gmail > someGmail ] . usersProperty ;
35
- collection [ < Email & Gmail > someGmail ] . gmailProperty ;
34
+
35
+ if ( Email . test ( someEmail ) ) {
36
+ collection [ someEmail ] . usersProperty ;
37
+ collection [ someEmail ] . gmailProperty ;
38
+ }
39
+ if ( Gmail . test ( someGmail ) ) {
40
+ collection [ someGmail ] . usersProperty ;
41
+ collection [ someGmail ] . gmailProperty ;
42
+ }
43
+
44
+ let someEmailLiteral : 'test @example . com ' = 'test@example.com' ;
45
+ let someGmailLiteral : 'test @gmail . com ' = 'test@gmail.com' ;
46
+ collection [ someEmailLiteral ] . usersProperty ;
47
+ collection [ someEmailLiteral ] . gmailProperty ;
48
+ collection [ someGmailLiteral ] . usersProperty ;
49
+ collection [ someGmailLiteral ] . gmailProperty ;
You can’t perform that action at this time.
0 commit comments