TypeScript/tests/baselines/reference/parser630933.types

14 lines
720 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser630933.ts ===
var a = "Hello";
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(parser630933.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>"Hello" : string
2014-08-15 23:33:16 +02:00
var b = a.match(/\/ver=([^/]+)/);
2015-04-13 23:01:57 +02:00
>b : RegExpMatchArray, Symbol(b, Decl(parser630933.ts, 1, 3))
2014-08-15 23:33:16 +02:00
>a.match(/\/ver=([^/]+)/) : RegExpMatchArray
2015-04-13 23:01:57 +02:00
>a.match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }, Symbol(String.match, Decl(lib.d.ts, 317, 40), Decl(lib.d.ts, 323, 44))
>a : string, Symbol(a, Decl(parser630933.ts, 0, 3))
>match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }, Symbol(String.match, Decl(lib.d.ts, 317, 40), Decl(lib.d.ts, 323, 44))
2015-04-13 21:36:11 +02:00
>/\/ver=([^/]+)/ : RegExp
2014-08-15 23:33:16 +02:00