160 Commits

Author SHA1 Message Date
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
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
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
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
Daniel Rosenwasser
13b5fe0573 Ensure that numeric names are in their printed form. 2014-10-09 12:50:01 -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
Daniel Rosenwasser
92a2c7ff3c Use our own scanner for 'isNumericName'. 2014-10-08 17:12:36 -07:00
Sheetal Nandi
966e697f2a Compiler test case for usage of contextual rest parameter 2014-10-08 12:31:03 -07:00
Chris Bubernak
c77135d3d9 Removed Numeric members from a bunch of tests
-in these tests it wasn't really in the spirit of the tests for them to be there
-also removed a test that no longer made sense
2014-10-06 16:14:45 -07:00
Sheetal Nandi
2de4ad0335 Merge pull request #818 from Microsoft/sourceMapRelativeDirName
Fixes incorrect path resolution of sources to sourcemap when the directory paths differ in only case
2014-10-06 11:48:10 -07:00
Sheetal Nandi
4cf78744e3 Added test cases for --outDir option 2014-10-06 11:37:08 -07:00
Mohamed Hegazy
432fff1362 Merge pull request #823 from chrisbubernak/betterErrorsForBitwiseOperatorsOnBooleans
Fix for issue #712
2014-10-05 09:51:11 -07:00
Chris Bubernak
6044e3aea3 Made fixes based on CR feedback 2014-10-04 10:10:55 -07:00
Sheetal Nandi
fe8f736207 Enable tests for the case sensitive and non case sensitive path resolution during soucemap path calculation 2014-10-03 15:07:18 -07:00
Yui T
5926a03363 Merge branch 'master' into flagAllDuplication 2014-10-01 14:27:41 -07:00
Yui T
296e8e01b3 Update Baselines 2014-10-01 11:27:20 -07:00
Yui T
c2d86711e8 Update baselines 2014-09-30 18:09:55 -07:00
ChrisBubernak
ae17c35728 Added error checking for references that reference the same file along
with 3 tests,
2014-09-25 09:12:31 -07:00
Vladimir Matveev
dae98be062 Merge pull request #737 from Microsoft/instanceof_cascading_errors
do not report cascading errors in instanceof operator
2014-09-24 11:09:21 -07:00
Vladimir Matveev
649f5c01a4 do not report cascading errors in instanceof operator 2014-09-24 09:10:40 -07:00
Vladimir Matveev
ef6a87cdfb use operator token when checking unary expressions in strict mode 2014-09-24 08:52:02 -07:00
Mohamed Hegazy
a6fdad1e97 Added protected conformance tests 2014-09-23 11:22:38 -07:00
Mohamed Hegazy
95394220b4 Merge branch 'release-1.1'
Conflicts:
	Jakefile
	src/compiler/tsc.ts
2014-09-22 14:55:28 -07:00
Mohamed Hegazy
68687395b8 handle cases where we have a node with width 0 when reporting grammar errors 2014-09-19 09:44:47 -07:00
Anders Hejlsberg
08188b0142 Merge branch 'master' into protectedMembers 2014-09-17 17:05:45 -07:00
Jason Freeman
b1f243d814 Merge branch 'release-1.1'
Conflicts:
	src/harness/harness.ts
	tests/baselines/reference/typeName1.errors.txt
2014-09-17 14:10:47 -07:00
Anders Hejlsberg
ce6b6234ef Support for protected members in classes 2014-09-17 10:36:32 -07:00
Anders Hejlsberg
b4cddc3903 Merge branch 'master' into tupleTypes 2014-09-15 11:04:58 -07:00
Anders Hejlsberg
74536cc6ed Report circular type inference errors with -noImplicitAny 2014-09-12 07:28:49 -07:00
Daniel Rosenwasser
96e5bd26c3 Fixed bug where function type literals may omit their '=>'. 2014-09-11 16:04:07 -07:00
Anders Hejlsberg
e2c3b50ed1 Merge branch 'master' into truncateTypesInErrors
Conflicts:
	src/compiler/checker.ts
2014-09-09 13:51:08 -07:00
Anders Hejlsberg
aa58dcbee0 Adding noErrorTruncation compiler option 2014-09-09 12:25:03 -07:00
Mohamed Hegazy
6fee404152 Merge pull request #602 from Microsoft/noImplicitAnyOnCast
Do not show noImplictAny errors when widening for a cast expression
2014-09-08 17:28:49 -07:00
Mohamed Hegazy
4f21fb59a2 fix typo 2014-09-08 12:08:15 -07:00
Jason Freeman
6fb3c34681 Conformance coverage for spec change #589 2014-09-05 18:44:49 -07:00
Mohamed Hegazy
dd3bb9cc69 Merge branch 'master' into noImplicitAnyOnCast 2014-09-05 16:46:41 -07:00
Mohamed Hegazy
3b6afb8499 respond to code review remarks 2014-09-05 16:41:37 -07:00
Anders Hejlsberg
be7e0a75e9 Merge branch 'master' into tupleTypes 2014-09-05 13:52:45 -07:00
Mohamed Hegazy
901c72808d Merge branch 'master' into emitDeclarationWithNoResolve 2014-09-05 13:07:14 -07:00
Mohamed Hegazy
05ebe9c214 add negative test for invalid references and declaration emit 2014-09-04 14:41:11 -07:00
Mohamed Hegazy
5422e56d48 Do not show noImplictAny errors when widening for a cast expression 2014-09-04 14:25:12 -07:00
Sheetal Nandi
f582902ec0 Merge pull request #569 from Microsoft/collisions
Report error if exports or require is used for declaration name in external module
2014-09-04 13:44:43 -07:00
Mohamed Hegazy
acf557dd3c Do not emit references in generated declaration files if the --noresolve flag was set. This fixes a crash in the compiler when generating declarations with /// reference and noResolve 2014-09-04 13:16:22 -07:00
Sheetal Nandi
7b45cdf9b3 Negative test cases for collision of export and require declaration names 2014-09-04 13:00:59 -07:00
Sheetal Nandi
3cc4b73858 Merge pull request #570 from Microsoft/linemaps
Handles all the line breaks in calculation of line-character position
2014-09-04 09:53:06 -07:00
Sheetal Nandi
816b018ae2 Fix the tab and indent calculation when formatting comments in the emitted output 2014-08-29 20:49:47 -07:00