Commit Graph
415 Commits
Author SHA1 Message Date
Mohamed Hegazy d5fe43b53e allow let and const declarations in module bodies under labels 2014-10-20 15:31:33 -07:00
Mohamed Hegazy dd5c89d5cf Update error messages 2014-10-20 13:48:22 -07:00
Mohamed Hegazy 0e7d8b62ef Merge branch 'master' into letAndConst 2014-10-20 13:34:06 -07:00
Anders Hejlsberg ff20df7a4a Merge branch 'master' into optionalPropertySubtyping
Conflicts:
	tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types
2014-10-20 11:33:23 -07:00
Anders Hejlsberg 152a9402d0 Merge pull request #914 from Microsoft/parensInTypes
Parentheses in type literals
2014-10-20 09:43:07 -07:00
Anders Hejlsberg 40d12a0995 Accepting new baselines 2014-10-19 16:44:32 -07:00
Anders Hejlsberg f3bd294d0e Adding tests 2014-10-19 07:57:10 -07:00
Anders Hejlsberg e96983dd2b Merge pull request #908 from Microsoft/contextualSignatureUnionTypes
Union types in contextual signature instantiations
2014-10-18 08:47:41 -07:00
Anders Hejlsberg e5872b4824 Addressing CR feedback 2014-10-18 08:37:33 -07:00
Anders Hejlsberg df715decbc Changing type-to-string conversions to use parentheses 2014-10-17 16:53:18 -07:00
Mohamed Hegazy a5a6c6f242 Allow const and let declarations to be exported in modules. Also ensure that const module elements are not used as references. 2014-10-17 15:15:22 -07:00
Anders Hejlsberg 411ca6afab Accepting new baselines 2014-10-17 13:46:41 -07:00
Mohamed Hegazy fd469d63b1 Fix search for shadowed const declarations by a var declarations to search for any variable instead of only a blockScoped one to ensure we are not picking it up from a wrong scope. 2014-10-17 09:28:42 -07:00
Anders Hejlsberg c00ee42b11 Adding tests 2014-10-16 20:52:36 -07:00
Mohamed Hegazy e15f4e6d34 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-16 09:30:58 -07:00
Daniel Rosenwasser 73d575e317 Merge branch 'master' into numbersAreHard
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.errors.txt
2014-10-15 17:07:22 -07:00
Mohamed Hegazy 61549239d8 Fix emitting for const in for loops 2014-10-15 09:20:46 -07:00
Mohamed Hegazy 03a100d039 Do not allow let and const declarations to be exported from a module 2014-10-15 09:15:00 -07:00
Mohamed Hegazy 3e4560147b Allow const in for statements 2014-10-14 17:37:46 -07:00
Mohamed Hegazy 82f5fb4055 Flag const declarations shodowed by var redeclarations 2014-10-14 17:15:11 -07:00
Mohamed Hegazy f5c2740093 Flag assignments to a const 2014-10-14 16:52:12 -07:00
Mohamed Hegazy cffc62aa1b Report duplicate identifier errors on all locations for merged declarations to align with local declarations 2014-10-14 15:18:44 -07:00
Mohamed Hegazy 318575ce75 Ensure duplicate let/const declarations accross files are reported 2014-10-14 14:51:28 -07:00
Mohamed Hegazy 1dde985f1d Do not allow use of block-scoped variable before its definition 2014-10-13 22:19:19 -07:00
Mohamed Hegazy cf89f5cf58 Add binder support for block scoped variable declarations 2014-10-13 20:54:26 -07:00
Anders Hejlsberg fc842b177e Merge branch 'master' into unionTypes
Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
	src/services/services.ts
	tests/baselines/reference/assignmentCompatBetweenTupleAndArray.errors.txt
	tests/baselines/reference/bestCommonTypeOfTuple.types
	tests/baselines/reference/bestCommonTypeOfTuple2.types
	tests/baselines/reference/castingTuple.errors.txt
	tests/baselines/reference/contextualTypeWithTuple.errors.txt
	tests/baselines/reference/genericCallWithTupleType.errors.txt
	tests/baselines/reference/indexerWithTuple.types
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
2014-10-13 12:37:34 -07:00
Anders Hejlsberg a76a418814 Accepting new baselines 2014-10-13 06:56:58 -07:00
Mohamed Hegazy 6f6f4afeb1 Fix line endings 2014-10-12 21:44:29 -07:00
Mohamed Hegazy 979d45eb67 Disallow let and const declarations outside blocks 2014-10-12 21:43:09 -07:00
Mohamed Hegazy 778f101dea Add basic parsing support for let and const 2014-10-12 21:10:04 -07:00
Mohamed Hegazy 873c1df74b Add es6 target 2014-10-11 12:52:42 -07:00
Anders Hejlsberg c9a42c19ab Accepting new baselines 2014-10-10 17:01:28 -07:00
Mohamed Hegazy bdac6ca895 Merge pull request #841 from chrisbubernak/disallowNumericEnumMembers
Fix for issue #134 (Disallow numeric enum members)
2014-10-10 16:24:12 -07:00
Dan Quirk 8ce1760d9e Fixing merge conflicts 2014-10-10 14:49:35 -07:00
Dan Quirk bacb9d0b22 Test updates from union changes 2014-10-10 14:41:14 -07:00
Cyrus Najmabadi d003561464 Fix newlines in tests 2014-10-10 14:23:12 -07:00
Daniel Rosenwasser 9f32f64a48 Make things more conformant with 9.8.1 of EC-262 spec.
Specifically, a numeric property is simply now any property whose name N is equal to ToString(ToNumber(N)).
2014-10-10 14:12:21 -07:00
Daniel Rosenwasser 291982007a Merge branch 'master' into numbersAreHard
Conflicts:
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
2014-10-09 14:38:19 -07:00
Yui T 00c30a3ed7 Merge branch 'master' into fixThrowExceptionOnEmitFile 2014-10-09 14:36:48 -07:00
Daniel Rosenwasser 13b5fe0573 Ensure that numeric names are in their printed form. 2014-10-09 12:50:01 -07:00
Yui T 6cb7ffb725 Add baseline 2014-10-09 10:34:22 -07:00
ChrisBubernak 2b4f48996e Moved the error check from parser to checker & updated baselines 2014-10-09 08:52:53 -07:00
ChrisBubernak 3d6dc58f85 Merge branch 'disallowNumericEnumMembers' of https://github.com/chrisbubernak/TypeScript into disallowNumericEnumMembers 2014-10-09 08:09:11 -07:00
Daniel Rosenwasser 5a49bb610a Handle numeric signs in 'isNumericName'.
To be fair, I don't think humanity knew about negative numbers until like 200 B.C.E.
2014-10-09 00:39:20 -07:00
Sheetal Nandi 58cfc985b9 Merge branch 'master' into symbolInfoFormatting 2014-10-08 18:25:42 -07:00
Yui T 67eff65e03 Add more test cases 2014-10-08 18:15:07 -07:00
Chris Bubernak 16f91b1ef3 fixed error message and updated necessary baselines 2014-10-08 17:23:16 -07:00
Daniel Rosenwasser 92a2c7ff3c Use our own scanner for 'isNumericName'. 2014-10-08 17:12:36 -07:00
Anders Hejlsberg 5c661baddc Accepting new baselines after merge with master
The tuple type tests from master need to be updated to reflect the new
best common type behavior from union types. This commit simply accepts
the baselines as they are.
2014-10-08 15:37:01 -07:00
Anders Hejlsberg ea4cbbee4e Merge branch 'master' into unionTypes 2014-10-08 15:23:37 -07:00