* Use existing 'continue' target labels for labeled statements * Use linked list for active labels * Add regression test * Accept new baselines
16 lines
257 B
TypeScript
16 lines
257 B
TypeScript
// @strict: true
|
|
|
|
enum User { A, B }
|
|
|
|
let user: User = User.A
|
|
|
|
label: while (true) {
|
|
switch (user) {
|
|
case User.A:
|
|
user = User.B;
|
|
continue label;
|
|
case User.B:
|
|
break label;
|
|
}
|
|
}
|
|
user;
|