Ron Buckton
21e3f6812c
[WIP] harness rewrite
2017-06-30 21:14:47 -07:00
Nathan Shively-Sanders
5780494ddb
Test:declaration emit of optional parameter props
2017-06-13 11:50:46 -07:00
Nathan Shively-Sanders
ecc211345a
Merge pull request #16465 from Microsoft/skip-non-null-assertion-for-reference-expr
...
Skip non-null assertion for references
2017-06-12 15:33:36 -07:00
Nathan Shively-Sanders
497d627a02
Test: Allow ++ after non-null assertion
2017-06-12 14:41:10 -07:00
Andy
fbcddb61e2
Don't bind JSDoc namespace in a TS file ( #16416 )
2017-06-12 14:35:35 -07:00
Anders Hejlsberg
4e9e62d861
Add test
2017-06-12 13:17:24 -07:00
Andy
13b7d17da7
Don't bind JSDoc type parameter in a TS file ( #16413 )
...
* Don't bind JSDoc type parameter in a TS file
* Fix tests
* Remove unnecessary non-null assertions
2017-06-09 14:52:01 -07:00
Andy
a2d524252c
--isolatedModules: Still allow re-export of type in a declaration file ( #16399 )
...
* --isolatedModules: Still allow re-export of type in a declaration file
* Use isInAmbientContext
2017-06-09 09:39:55 -07:00
Nathan Shively-Sanders
cae1286b72
Merge pull request #16343 from Microsoft/weak-types-for-primitives
...
Weak type errors for primitives
2017-06-09 09:03:48 -07:00
Nathan Shively-Sanders
ffc899ed38
Merge pull request #16377 from Microsoft/fix-synthetic-properties-in-hasExcessProperties
...
Fix synthetic properties in hasExcessProperties
2017-06-08 15:49:51 -07:00
Nathan Shively-Sanders
d3f2234529
Test synthetic properties w/hasExcessProperties
2017-06-08 14:19:06 -07:00
Ron Buckton
ef86f7da50
Adjust source map offsets for variables in downlevel async funcs and generators
2017-06-08 14:15:40 -07:00
Nathan Shively-Sanders
2eea0989ea
Merge branch 'master' into delay-signature-return-type-instantiation
2017-06-08 09:42:50 -07:00
Nathan Shively-Sanders
b509e681c1
Test weak type errors with primitives
2017-06-07 16:20:58 -07:00
Nathan Shively-Sanders
40dd8ba18f
Merge pull request #16330 from Microsoft/fix-js-infer-rest-args
...
Fix JS-inferred rest parameters
2017-06-07 14:44:02 -07:00
Nathan Shively-Sanders
c0b8c217b1
Test returning an infinite type in an intersection
2017-06-07 13:27:31 -07:00
Nathan Shively-Sanders
f5f2d24372
Add tests for JS-inferred rest parameters
2017-06-07 11:28:26 -07:00
Ron Buckton
9250d0a290
Merge branch 'master' into externalExportStar
2017-06-07 10:53:42 -07:00
Ron Buckton
2f6c6e6538
Merge branch 'master' into fix16086
2017-06-06 16:09:37 -07:00
Nathan Shively-Sanders
617f60e3f0
Merge pull request #16306 from Microsoft/fix-nullable-filtering-in-spreads
...
Fix nullable filtering in spreads
2017-06-06 15:00:48 -07:00
Nathan Shively-Sanders
ea830d4fad
Move spreadUnion* tests into conformance suite
2017-06-06 13:58:54 -07:00
Ron Buckton
b5f81f9ede
Fix emit when type import merges with local value
2017-06-05 18:39:32 -07:00
Nathan Shively-Sanders
8f4af49ccd
Merge pull request #16194 from Microsoft/fix-reexported-missing-alias
...
Fix reexported missing alias
2017-06-05 16:04:26 -07:00
Nathan Shively-Sanders
bb54a6a53e
Typeof can refer to a class in a previous file with --out ( #16269 )
...
* Typeof can refer block-scoped values in prev file
`typeof C` can now refer to block-scoped values in a preceding file when
used with --out or --outFile. Previously this was not allowed with --out
or --outFile since they depend on file order for their emit.
* Test `typeof C` reference across files with --out
2017-06-05 15:57:32 -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
Nathan Shively-Sanders
9bcbeffcc7
Test reexport of a missing alias
2017-06-01 09:21:31 -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