From 7a74d9f8d021f50201765d2170af8d249af90320 Mon Sep 17 00:00:00 2001 From: Jason Freeman Date: Wed, 3 Jun 2015 17:22:38 -0700 Subject: [PATCH] Add tests for parenthesized type assertions --- .../es6/destructuring/destructuringTypeAssertionsES5_1.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_2.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_3.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_4.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_5.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_6.ts | 2 ++ .../es6/destructuring/destructuringTypeAssertionsES5_7.ts | 2 ++ 7 files changed, 14 insertions(+) create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts create mode 100644 tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts new file mode 100644 index 00000000000..7be8ce1dc12 --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = foo(); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts new file mode 100644 index 00000000000..7c4e084796a --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = (foo()); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts new file mode 100644 index 00000000000..30386fe9f86 --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = (foo()); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts new file mode 100644 index 00000000000..84f251c205b --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = foo(); \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts new file mode 100644 index 00000000000..927a53883d3 --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = 0; \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts new file mode 100644 index 00000000000..2097a8ec760 --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = new Foo; \ No newline at end of file diff --git a/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts new file mode 100644 index 00000000000..d11381dc088 --- /dev/null +++ b/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts @@ -0,0 +1,2 @@ +//@target: ES5 +var { x } = new Foo; \ No newline at end of file