File: invalidBinaryIntegerLiteralAndOctalIntegerLiteral.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (22 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
=== tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/invalidBinaryIntegerLiteralAndOctalIntegerLiteral.ts ===
// Error
var binary = 0b21010;
>binary : number
>0b : 0
>21010 : 21010

var binary1 = 0B21010;
>binary1 : number
>0B : 0
>21010 : 21010

var octal = 0o81010;
>octal : number
>0o : 0
>81010 : 81010

var octal = 0O91010;
>octal : number
>0O : 0
>91010 : 91010