Commit Graph
209 Commits
Author SHA1 Message Date
Sheetal Nandi acff59f029 Test case for visibility error in the type literal 2014-11-10 18:47:51 -08:00
Sheetal Nandi d6fb678222 Test cases for type alias declaration emit and privacy check.
Also removed the unnecessary error messages for type alias privacy check
2014-11-10 18:28:05 -08:00
Sheetal Nandi 5664b6fcf9 Test cases for type annotation visibility errors 2014-11-10 18:10:00 -08:00
Sheetal Nandi c661ffa7ec Test cases for type literal annotation 2014-11-10 17:15:26 -08:00
Sheetal Nandi 9e41b0fed4 Test case for string literal overload type annotation 2014-11-10 17:09:34 -08:00
Sheetal Nandi c2188a329d Test case for paren type annotation 2014-11-10 17:08:50 -08:00
Sheetal Nandi 68a07ed0a9 Test cases for union type annotation 2014-11-10 17:01:38 -08:00
Sheetal Nandi 5207bd9625 Type annotation of tuple type emit in the declaration file 2014-11-10 17:01:35 -08:00
Sheetal Nandi 737b72d73d Test cases for array type annotation 2014-11-10 17:01:31 -08:00
Sheetal Nandi ab1558828a Test cases for type query 2014-11-10 17:01:28 -08:00
Sheetal Nandi e11fa3fcc7 Tests for type reference annotation 2014-11-10 17:01:24 -08:00
Sheetal Nandi cee6452e93 Tests for built in type name reference in type annotation 2014-11-10 17:01:21 -08:00
Sheetal Nandi da314a3774 Merge pull request #1041 from Microsoft/declFilePrivateMethodOverload
Declaration file emit for private method overloads
2014-11-06 14:54:06 -08:00
vladima 95ec8c065f add test for const enum that is initialized with enum member defined above 2014-11-04 12:13:19 -08:00
Sheetal Nandi 3ce841466d Declaration file emit for private method overloads (#1018) 2014-11-03 12:50:32 -08:00
Vladimir Matveev 2d94030f58 inline enum constant values for indexed access when index is string literal 2014-11-01 18:16:48 -07:00
Vladimir Matveev 0b738e86c4 merge with master 2014-11-01 02:06:37 -07:00
Vladimir Matveev 8662c689b3 add test for 'preserveConstEnums' command line argument 2014-11-01 01:06:06 -07:00
Vladimir Matveev 7d80b7186d do not treat module that contains only const enums as instantiated 2014-11-01 00:56:00 -07:00
Anders Hejlsberg bf3a62909b Addressing feedback and adding regression tests 2014-10-31 14:23:29 -07:00
Vladimir Matveev dd57c6c5c0 added .d.ts generation tests 2014-10-30 22:48:32 -07:00
Vladimir Matveev 270d18711c addressed CR feedback 2014-10-30 00:55:44 -07:00
Vladimir Matveev 4aa4ea75d1 allow arithmetic operations in constant expressions, handle infinity\NaN results 2014-10-29 23:21:30 -07:00
Vladimir Matveev e949eda583 const enums, iteration 1: const enums can be used in imports, const enums can be merged only with const enums. 2014-10-29 00:17:16 -07:00
Vladimir Matveev 2dd9511b0a 'const enum' iteration 0. TODO: allow and track const enums in imports, add more tests 2014-10-27 23:56:07 -07:00
Vladimir Matveev 329d6e2f13 merge with master 2014-10-27 21:13:34 -07:00
Vladimir Matveev 365587f6bf addressed CR feedback, added support for indexed access 2014-10-26 23:42:20 -07:00
Vladimir Matveev ce336bcec7 added folding for references to enum members in enum member initializers, added tests 2014-10-26 16:40:02 -07:00
Jason Freeman bfb63df568 Merge branch 'master' into overloadResolution
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-10-24 16:36:42 -07:00
Mohamed Hegazy 67c78a2662 Only check for collisions with variabels and not properties 2014-10-24 10:30:40 -07:00
Mohamed Hegazy e4a20849bb Ensure let and const declarations in labels are parsed correctelly 2014-10-24 10:14:36 -07:00
Jason Freeman 25171857c5 Add test for bug #807 2014-10-23 12:27:34 -07:00
Jason Freeman e8d5fdc286 Revert the stuffing of instantiated signatures back into the candidates array 2014-10-22 15:08:16 -07:00
Jason Freeman 44f1ab07bf Give different errors for different overload resolution issues 2014-10-22 15:08:14 -07:00
Mohamed Hegazy d5fe43b53e allow let and const declarations in module bodies under labels 2014-10-20 15:31:33 -07:00
Mohamed Hegazy 0e7d8b62ef Merge branch 'master' into letAndConst 2014-10-20 13:34:06 -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
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
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 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
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