TypeScript/tests/cases/conformance/expressions
Nathan Shively-Sanders 69e9bfef35 Add typeof test case and update baselines
Test that `typeof x === 'random' as string`:

1. Does not issue an error.
2. Does not narrow.
2017-01-31 10:28:32 -08:00
..
arrayLiterals Add spec description to the test file and move tests that generate errors to separate file 2015-04-16 14:41:19 -07:00
asOperator Emit parens around type-asserted binary operators 2016-07-15 15:56:22 -07:00
assignmentOperator Update tests 2016-09-21 16:03:51 -07:00
binaryOperators Test:instanceof allows callable/constructable RHS 2016-12-07 13:16:23 -08:00
commaOperator Disallow left comma operator operands which don't have side effects 2016-09-12 14:45:42 -07:00
conditonalOperator Tests for Conditional operator can generate union type 2014-11-04 13:18:43 -08:00
contextualTyping addressed PR feedback, updated tests to suppress reachability errors where they are not needed 2015-10-13 10:58:55 -07:00
elementAccess Added tests for ASI and element access with 'let'. 2016-02-20 00:58:20 -08:00
functionCalls Ensure transformFlags are correct before visiting a node. 2016-11-03 17:21:36 -07:00
functions Add tests 2017-01-07 15:16:26 -08:00
identifiers Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
literals Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
newOperator Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
objectLiterals Fix tests 2016-01-24 13:44:22 -08:00
operators Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
propertyAccess More exhaustive needsDotDotForPropertyAccess 2017-01-24 13:42:05 -08:00
superCalls Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
superPropertyAccess Instantiate this-type in super property access 2016-05-24 13:07:34 -07:00
thisKeyword Update baselines: 'this' in object literal methods 2016-03-09 13:08:09 -08:00
typeAssertions Added tests. 2016-06-14 19:02:47 -07:00
typeGuards Add typeof test case and update baselines 2017-01-31 10:28:32 -08:00
unaryOperators Update tests 2016-09-21 16:03:51 -07:00
valuesAndReferences Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00