Nathan Shively-Sanders
ea830d4fad
Move spreadUnion* tests into conformance suite
2017-06-06 13:58:54 -07:00
Nathan Shively-Sanders
1d8f57e7b3
Favour exact-match spelling suggestions
...
Previously, the first match that was close enough was returned as the
spelling suggestion. Now, if there is a candidate that differs only by
case, it will always be the suggestion.
2017-06-05 11:17:44 -07:00
Nathan Shively-Sanders
24e35cd940
Merge pull request #16047 from Microsoft/sandersn/weakType
...
Weak type detection
2017-06-02 13:11:45 -07:00
Andrew Casey
87b00fdd8d
Add @checkJs: true to JS bind error tests
2017-06-02 10:29:53 -07:00
Andrew Casey
01d6d489be
Add regression tests
...
Report unreachable code in JS files when --checkjs is passed, but not
otherwise.
2017-06-01 18:11:26 -07:00
Ron Buckton
3029313f32
Fix issue with 'for await' over a union type
2017-05-30 15:14:52 -07:00
Kate Miháliková
2d60b2d117
Add tests and baselines
2017-05-30 08:04:18 +02:00
Nathan Shively-Sanders
f9a05a1f9d
Re-enable weak type check for intersection props
...
Previously, intersections disabled the weak type check for their
constituents, and all properties (recursively) of their constituents.
Also add test for this case.
2017-05-26 13:39:53 -07:00
Anders Hejlsberg
bcf84f4958
Merge pull request #16072 from Microsoft/improveTypeArgumentInference
...
Infer from generic function return types
2017-05-26 10:59:40 -07:00
Nathan Shively-Sanders
548f92ad34
Weak types must not have call or construct sigs
...
This changes the definition of weak types
2017-05-26 10:19:20 -07:00
Anders Hejlsberg
f29d7df5d1
Add tests
2017-05-24 15:50:30 -07:00
Nathan Shively-Sanders
c9da70560f
Update tests
...
1. Accept baselines
2. Fix APISample_watcher
3. Switch checker to use JSDOc for isWeak
Some of the baselines seem incorrect or weirder than before.
2017-05-23 14:35:05 -07:00
Mohamed Hegazy
5ef6192c20
Allow export default interface. Related to issue 3792. ( #16040 )
...
* Allow export default interface. Related to issue 3792.
* Update exportDefaultAbstractClass test
* Allow default export to be a non-value for lookup purposes
* Add local usage to exportDefaultInterface test
2017-05-23 13:40:03 -07:00
Nathan Shively-Sanders
49d4acaef6
Merge branch 'master' into weakType
2017-05-23 13:29:45 -07:00
Nathan Shively-Sanders
396071be9c
Detect weak type correctly for intersection types
...
Plus add an intersection test case.
2017-05-23 13:28:48 -07:00
Yui
e4aa515191
[Master] Fix 15179 missing comment in switch case clause ( #16033 )
...
* Fix emit comments after switch case clause
* Update baselines
* Add new tests and baselines
2017-05-23 10:24:46 -07:00
Andy Hanson
3690926e62
In path mapping module resolution, try loading from path as directory even if it has an extension
2017-05-23 08:11:42 -07:00
Nathan Shively-Sanders
c583c326da
Merge branch 'master' into weakType
2017-05-22 16:16:42 -07:00
Nathan Shively-Sanders
bc914c02e6
Merge pull request #15932 from Microsoft/decl-emit-class-expr-as-type-literal
...
Declaration-emit class expressions as type literals
2017-05-22 15:46:38 -07:00
Nathan Shively-Sanders
ecaf44d474
Add more tests and update baselines
2017-05-22 14:57:56 -07:00
Andy
bba8e74496
Fix path in importDeclTypes.ts test ( #15992 )
2017-05-22 10:25:40 -07:00
Nathan Shively-Sanders
a0fa8ae6c4
Address most PR comments
...
I am still working on the error for class expressions that extend from a
non-exported base.
2017-05-22 10:18:31 -07:00
Andy
24d98f2295
Merge pull request #15856 from Microsoft/jsdoc
...
Support for JSDoc in services
2017-05-22 07:46:52 -07:00
Andy
616edae4af
Merge pull request #15954 from Microsoft/typeArgs
...
Unconditionally compute type arguments of class base type
2017-05-19 10:36:39 -07:00
Noel Varanda
4cd20b1335
Fix #15540 : Throw error when importing @types ( #15866 )
...
* Fix #15540 : Throw error when importing @types
Fix issue: #15540
- Modify checker; external imports to account for imported modules
containing '@types/'.
- Add diagnostic message.
- Add test case
* FIX-15540: Review changes
- Replace `substr` with `startsWith`
- move diagnostics message to more relevant place
- Add `removePrefix` helper function
2017-05-19 09:38:04 -07:00
Andy Hanson
ce1e0097f0
Unconditionally compute type arguments of class base type
2017-05-19 08:56:56 -07:00
Nathan Shively-Sanders
beba5de9df
Merge branch 'master' into weakType
...
It's probably fine!
2017-05-19 08:54:25 -07:00
Andy Hanson
ba884bc27b
Merge branch 'master' into jsdoc
2017-05-19 08:14:52 -07:00
Nathan Shively-Sanders
e77024915e
Test:decl emit for class expressions as type lits
...
Add test and update baselines
2017-05-18 09:11:26 -07:00
Nathan Shively-Sanders
86661b5272
Merge pull request #13900 from Microsoft/object-literal-freshness-with-spread
...
Object literal freshness errors with spreads
2017-05-17 11:44:25 -07:00
Andy Hanson
76955ce792
Expand tests that jsdoc does not affect typescript code
2017-05-17 07:27:08 -07:00
Arthur Ozga
bba41a8a0c
avoid ascii escaping literal text
2017-05-15 18:42:49 -07:00
Ron Buckton
3521b9c546
if a JSSpecialPropertyDeclaration has a JSDoc type, use it
2017-05-11 16:23:05 -07:00
Nathan Shively-Sanders
7803c1ce17
Test:reference ambient block scoped vars in different file
2017-05-11 11:38:26 -07:00
Andy
066bb16173
Merge pull request #15539 from Microsoft/isolated-modules_export-star
...
Never elide an `export *` when `--isolatedModules` is set
2017-05-10 17:59:08 -07:00
Andy
2ba89fc534
Merge pull request #15538 from Microsoft/isolated-modules_re-export-type
...
Don't allow to re-export a type when '--isolatedModules' is set
2017-05-10 17:58:49 -07:00
Nathan Shively-Sanders
2f0e34149d
Merge pull request #15740 from Microsoft/emit-expression-in-extends-nested
...
Correctly emit expression in extends in namespace
2017-05-10 12:41:11 -07:00
Nathan Shively-Sanders
cf2c88c398
Test: no declare in declaration tmp in namespace
2017-05-10 11:48:32 -07:00
Herrington Darkholme
1bbc94fc67
fix #15666 : mark file as optional in Diagnostic
2017-05-10 12:29:53 +08:00
Mohamed Hegazy
a2dec0d03d
Fix #15062 : report errors for parameter properties in private constructors
2017-05-09 12:03:08 -07:00
Nathan Shively-Sanders
370b5618a0
Merge branch 'master' into spelling-correction
2017-05-09 10:01:03 -07:00
Nathan Shively-Sanders
2e9143aaf0
Clean up test a little
2017-05-08 11:36:30 -07:00
Nathan Shively-Sanders
5ad2ced0c3
Update test with trickier case from #15616
2017-05-08 11:03:41 -07:00
Anders Hejlsberg
c39a683504
Merge pull request #15576 from Microsoft/typeVariableTypeGuards
...
Improve type guards for type variables
2017-05-07 10:52:29 -07:00
Ron Buckton
ada4b3d4d8
Fix var emit order for converted loops
2017-05-05 17:38:23 -07:00
Sheetal Nandi
96aca4c7d0
Merge pull request #13540 from Microsoft/metadataReferences
...
Mark as referenced aliases in Union that will get emitted as part of decorator metadata
2017-05-04 15:04:13 -07:00
Andy
7fe1aba82a
Merge pull request #15557 from Microsoft/unused-type-parameter
...
Mark type arguments as used even if used in an invalid way
2017-05-04 14:15:16 -07:00
Ron Buckton
500dd16bc1
Merge pull request #15590 from Microsoft/fix15471
...
Add check for tslib __await helper
2017-05-04 13:59:54 -07:00
Ron Buckton
cbeb11eabf
Add check for tslib __await helper
2017-05-04 13:13:10 -07:00
Anders Hejlsberg
a6dfd66fc1
Update tests
2017-05-04 10:20:13 -07:00