Add test for new Symbol()

This commit is contained in:
Jason Freeman 2015-02-05 12:19:58 -08:00
parent 92617f5978
commit fbeadbcbd3
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/Symbols/symbolType14.ts(1,1): error TS2350: Only a void function can be called with the 'new' keyword.
==== tests/cases/conformance/es6/Symbols/symbolType14.ts (1 errors) ====
new Symbol();
~~~~~~~~~~~~
!!! error TS2350: Only a void function can be called with the 'new' keyword.

View file

@ -0,0 +1,5 @@
//// [symbolType14.ts]
new Symbol();
//// [symbolType14.js]
new Symbol();

View file

@ -0,0 +1,2 @@
//@target: ES6
new Symbol();