15 lines
287 B
Text
15 lines
287 B
Text
=== tests/cases/compiler/ternaryExpressionSourceMap.ts ===
|
|
|
|
var x = 1;
|
|
>x : number
|
|
>1 : number
|
|
|
|
var foo = x ? () => 0 : () => 0;
|
|
>foo : () => number
|
|
>x ? () => 0 : () => 0 : () => number
|
|
>x : number
|
|
>() => 0 : () => number
|
|
>0 : number
|
|
>() => 0 : () => number
|
|
>0 : number
|
|
|