57 lines
715 B
Text
57 lines
715 B
Text
=== tests/cases/compiler/literals1.ts ===
|
|
var a = 42;
|
|
>a : number
|
|
>42 : number
|
|
|
|
var b = 0xFA34;
|
|
>b : number
|
|
>0xFA34 : number
|
|
|
|
var c = 0.1715;
|
|
>c : number
|
|
>0.1715 : number
|
|
|
|
var d = 3.14E5;
|
|
>d : number
|
|
>3.14E5 : number
|
|
|
|
var e = 8.14e-5;
|
|
>e : number
|
|
>8.14e-5 : number
|
|
|
|
var f = true;
|
|
>f : boolean
|
|
>true : boolean
|
|
|
|
var g = false;
|
|
>g : boolean
|
|
>false : boolean
|
|
|
|
var h = "";
|
|
>h : string
|
|
>"" : string
|
|
|
|
var i = "hi";
|
|
>i : string
|
|
>"hi" : string
|
|
|
|
var j = '';
|
|
>j : string
|
|
>'' : string
|
|
|
|
var k = 'q\tq';
|
|
>k : string
|
|
>'q\tq' : string
|
|
|
|
var m = /q/;
|
|
>m : RegExp
|
|
>/q/ : RegExp
|
|
|
|
var n = /\d+/g;
|
|
>n : RegExp
|
|
>/\d+/g : RegExp
|
|
|
|
var o = /[3-5]+/i;
|
|
>o : RegExp
|
|
>/[3-5]+/i : RegExp
|
|
|