Anders Hejlsberg
df3b5bbdab
Fix ThisParameterType<T> type ( #36013 )
...
* Simplify ThisParameterType<T> type
* Add tests
2020-01-06 08:55:34 -10:00
Anders Hejlsberg
d2cc282134
Add tests
2018-12-10 09:45:55 -08:00
Anders Hejlsberg
e9679f0191
Add tests
2018-09-11 06:43:17 -07:00
Ryan Cavanaugh
ed70d4887a
Merge pull request #25633 from Kingwl/strictParameter
...
add use strict and simple parameter check
2018-09-05 17:15:52 -07:00
Wenlu Wang
038f665171
fix lookup regression again ( #26762 )
...
* fix lookup regression again
* add test case
2018-08-30 08:48:49 -07:00
Wenlu Wang
f67d7e01cf
add test case and fix regression ( #26726 )
2018-08-29 06:58:55 -07:00
王文璐
597bb0e764
Merge branch 'master' into strictParameter
2018-08-29 18:28:36 +08:00
王文璐
8869f39c25
accept more case
2018-08-28 16:41:26 +08:00
王文璐
d758075597
add special check for parameter initializer lookup if targeting es2015+
2018-08-28 15:02:28 +08:00
王文璐
02f5365e08
improve error message and update testcase
2018-08-01 13:45:57 +08:00
王文璐
cdfef4fa57
add use strict and simple parameter check
2018-07-16 17:40:57 +08:00
Daniel Rosenwasser
3cdfc36109
Added tests for 'void' return type compatibilty on overloads and implementations.
2015-12-11 15:04:27 -08:00
Daniel Rosenwasser
2c2b8be238
Remove empty test.
2015-12-08 14:53:05 -08:00
Vladimir Matveev
bc02341e99
addressed PR feedback, updated tests to suppress reachability errors where they are not needed
2015-10-13 10:58:55 -07:00
Sheetal Nandi
802f11349f
Merge pull request #1056 from Microsoft/unionTypeConformance
...
Union type conformance
2014-12-02 08:02:34 -08:00
Sheetal Nandi
9d31631fd7
Test cases of function infering return type of functions
...
if f is a contextually typed function expression (section 4.9.3), the inferred return type is the union type (section 3.3.4) of the types of the return statement expressions in the function body, ignoring return statements with no expressions.
Otherwise, the inferred return type is the first of the types of the return statement expressions in the function body that is a supertype (section 3.8.3) of each of the others, ignoring return statements with no expressions. A compile-time error occurs if no return statement expression has a type that is a supertype of each of the others.
2014-11-04 16:40:56 -08:00
Daniel Rosenwasser
f3f3994f25
Added tests.
2014-09-11 14:52:14 -07:00
Mohamed Hegazy
214df64e28
Add snapshot of compiler sources
2014-07-12 17:30:19 -07:00