Nathan Shively-Sanders
e25db39ab4
Merge branch 'master' into narrowing-a-type-parameter-intersects-concrete-types
2016-08-08 08:42:28 -07:00
Andy Hanson
9947ac2ece
Don't allow properties inherited from Object to be automatically included in TSX attributes
2016-08-04 14:13:07 -07:00
Yui
10b36abc8f
[Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors ( #9867 )
...
* Change the shape of the shim layer to support getAutomaticTypeDirectives
* Change the key for looking up automatic type-directives
* Update baselines from change look-up name of type-directives
* Add @currentDirectory into the test
* Update baselines
* Fix linting error
* Address PR: fix spelling mistake
* Instead of return path of the type directive names just return type directive names
2016-08-04 07:43:54 -07:00
Nathan Shively-Sanders
4189b4d718
Narrowing type parameter intersects w/narrowed types
...
This makes sure that a union type that includes a type parameter is
still usable as the actual type that the type guard narrows to.
2016-08-02 16:10:20 -07:00
Ryan Cavanaugh
2d20dbf25e
Merge pull request #9767 from RyanCavanaugh/fix9766
...
Emit parens around type-asserted binary operators
2016-08-01 15:44:48 -07:00
Anders Hejlsberg
0c131fab68
Merge pull request #9407 from Microsoft/literalTypes
...
Number, enum, and boolean literal types
2016-07-28 12:09:49 -07:00
Anders Hejlsberg
ff0cbb5b29
Merge branch 'master' into literalTypes
...
# Conflicts:
# src/compiler/checker.ts
2016-07-24 07:28:11 -07:00
Nathan Shively-Sanders
2169928f2b
Protected constructors now accessible everywhere in subclasses
2016-07-22 17:38:25 -07:00
Nathan Shively-Sanders
25525607d5
Test that protected constructors are accessible
...
in static methods of subclasses
2016-07-22 13:38:45 -07:00
Daniel Rosenwasser
82de93236e
Merge branch 'master' into tsaImmutable
2016-07-20 17:29:38 -07:00
Yui
9886f88004
[Release-2.0] Fix 9685: missing decoratedClassAlias emit in self-reference decorated class ( #9763 )
...
* Wip
* Fix incorrect emit decorated class alias when targeting es6 or higher
* Add tests and baselines
* Remove unused test file
2016-07-18 08:48:12 -07:00
Ryan Cavanaugh
124305d007
Emit parens around type-asserted binary operators
...
Fixes #9766
2016-07-15 15:56:22 -07:00
Nathan Shively-Sanders
4598c13eec
Provide a symbol for salsa-inferred class types
2016-07-11 12:51:45 -07:00
Nathan Shively-Sanders
2f8a5b34f6
Test for multiple salsa assignment-declarations
2016-07-11 12:50:59 -07:00
Daniel Rosenwasser
348a4e9689
Fixed up tests that used 'string[]' instead of 'TemplateStringsArray'.
2016-07-08 17:39:51 -07:00
Anders Hejlsberg
871aee1416
Adding new tests
2016-07-06 21:01:00 -07:00
Anders Hejlsberg
82c26cd1ef
Adding selected tests from #6196
2016-07-06 21:00:47 -07:00
Yui
29107e636b
Fix 9363: Object destructuring broken-variables are bound to the wrong object ( #9383 )
...
* Fix emit incorrect destructuring mapping in var declaration
* Add tests and baselines
* Add additional tests and baselines
2016-06-28 13:33:11 -07:00
Nathan Shively-Sanders
fb3f823dde
Merge pull request #9167 from Microsoft/make-unions-and-intersections-of-readonly-properties-readonly
...
Unions and intersections of readonly properties are now also readonly
2016-06-24 16:02:01 -07:00
Yui
db0d8e094b
Fix 8549: Using variable as Jsx tagname ( #9337 )
...
* Parse JSXElement's name as property access instead of just entity name. So when one accesses property of the class through this, checker will check correctly
* wip - just resolve to any type for now
* Resolve string type to anytype and look up property in intrinsicElementsType of Jsx
* Add tests and update baselines
* Remove unneccessary comment
* wip-address PR
* Address PR
* Add tets and update baselines
* Fix linting error
2016-06-24 14:15:44 -07:00
Erik Edrosa
be662e1f6e
Change test comment and accept baseline
2016-06-22 13:20:58 -04:00
Anders Hejlsberg
c7dec0ea68
Merge pull request #9163 from Microsoft/typeGuardDiscriminants
...
Discriminated union types
2016-06-17 14:37:35 -07:00
Daniel Rosenwasser
14c2bcf73a
Added tests.
2016-06-14 19:02:47 -07:00
Nathan Shively-Sanders
931839c842
Test readonly intersection and union properties
2016-06-14 13:23:53 -07:00
Anders Hejlsberg
a3635ccd8b
Merge branch 'master' into typeGuardDiscriminants
...
# Conflicts:
# src/compiler/binder.ts
# src/compiler/checker.ts
2016-06-14 13:08:17 -07:00
Daniel Rosenwasser
5a90c6777a
Added tests.
2016-06-14 11:33:41 -07:00
Anders Hejlsberg
5ff7c29d40
Add tests
2016-06-14 09:33:56 -07:00
Ryan Cavanaugh
f9923efd09
Merge pull request #9095 from RyanCavanaugh/implicitTypeReferences
...
Implicit type inclusion changes
2016-06-13 16:33:22 -07:00
Nathan Shively-Sanders
8b093128b3
Merge pull request #9036 from Microsoft/primitive-type-guards-are-order-independent
...
Primitive type guards are order independent
2016-06-13 10:52:06 -07:00
Ryan Cavanaugh
6702e651a3
CR changes
2016-06-13 10:15:29 -07:00
Ryan Cavanaugh
576f09f531
Merge
2016-06-10 15:47:51 -07:00
Ryan Cavanaugh
9827b638b4
Implicit type inclusion changes
2016-06-10 15:44:11 -07:00
Andy Hanson
ff6e025e8a
Merge branch 'master' into shorthand_ambient_module
2016-06-10 06:03:54 -07:00
Nathan Shively-Sanders
86a6959e2a
Merge branch 'master' into primitive-type-guards-are-order-independent
2016-06-09 15:56:34 -07:00
Nathan Shively-Sanders
a1e4b31d16
Allow null/undefined guard with null/undefined on left
...
Also add a test with baselines.
2016-06-09 15:48:35 -07:00
Andy
9ffd00d6ff
Merge pull request #8939 from Microsoft/pattern_ambient_modules
...
Allow wildcard ("*") patterns in ambient module declarations
2016-06-09 13:08:02 -07:00
Andy Hanson
9fa971091c
Add tests for more kinds of import/export
2016-06-09 12:46:52 -07:00
Andy Hanson
75c1d77606
Merge branch 'master' into shorthand_ambient_module
2016-06-09 11:43:18 -07:00
Andy
512c6719ae
Merge pull request #8895 from Microsoft/strip_extension
...
Allow an import of "foo.js" to be matched by a file "foo.ts"
2016-06-09 11:38:26 -07:00
Andy Hanson
559b49baa9
Improve tests
2016-06-09 11:33:53 -07:00
Anders Hejlsberg
9e122909d4
Merge pull request #9031 from Microsoft/typeGuardIntersectionTypes
...
Type guard intersection types
2016-06-08 22:14:19 -07:00
Anders Hejlsberg
b1a749895a
Fix comment
2016-06-08 18:39:07 -07:00
Anders Hejlsberg
d182a59782
Fix comments in tests
2016-06-08 16:35:39 -07:00
Anders Hejlsberg
b3c5c1db23
Merge pull request #9013 from Microsoft/typeGuardNestedAssignment
...
Allow nested assignments in type guards
2016-06-08 16:26:07 -07:00
Anders Hejlsberg
aeb1d97ced
Merge pull request #8949 from Microsoft/strictNullLogicalAnd
...
Improve typing of && operator with --strictNullChecks
2016-06-08 16:24:51 -07:00
Nathan Shively-Sanders
11377f9fd3
Primitive type guards are now order independent
2016-06-08 15:56:25 -07:00
Mohamed Hegazy
d36d2b3eaa
Merge pull request #8771 from YuichiNukiyama/fix8505
...
add SharedArrayBuffer
2016-06-08 13:27:09 -07:00
Anders Hejlsberg
a57ee29ff7
Add tests
2016-06-08 11:41:44 -07:00
Anders Hejlsberg
cdf5b7aeb3
Add tests
2016-06-07 17:37:18 -07:00
Nathan Shively-Sanders
5fef0804c8
Merge pull request #9003 from Microsoft/caseUndefinedAndNull
...
Allow case comparison to undefined and null in strict null checking mode
2016-06-07 09:25:03 -07:00