TypeScript/tests/baselines/reference/switchBreakStatements.types

127 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts ===
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break;
}
ONE:
>ONE : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break ONE;
>ONE : any
2014-08-15 23:33:16 +02:00
}
TWO:
>TWO : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
THREE:
>THREE : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break THREE;
>THREE : any
2014-08-15 23:33:16 +02:00
}
FOUR:
>FOUR : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
FIVE:
>FIVE : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break FOUR;
>FOUR : any
2014-08-15 23:33:16 +02:00
}
}
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
SIX:
>SIX : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break SIX;
>SIX : any
2014-08-15 23:33:16 +02:00
}
}
SEVEN:
>SEVEN : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
break SEVEN;
>SEVEN : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
EIGHT:
>EIGHT : any
2015-04-13 21:36:11 +02:00
2014-08-15 23:33:16 +02:00
switch ('') {
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
case 'a':
2015-04-13 21:36:11 +02:00
>'a' : string
2014-08-15 23:33:16 +02:00
var fn = function () { }
>fn : () => void
2014-08-15 23:33:16 +02:00
>function () { } : () => void
break EIGHT;
>EIGHT : any
2014-08-15 23:33:16 +02:00
}
}
}
}