Konstantin Shcheglov
fd4edad020
Update id tests constants/ to use getDisplayString().
...
R=brianwilkerson@google.com , devoncarew@google.com
Change-Id: If7d737ca3a31954e4d3c061d316548e8f54b0d10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157121
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-04 23:38:32 +00:00
Konstantin Shcheglov
ebd5b622ba
Add DartSdk.languageVersion
...
Bug: https://github.com/dart-lang/build/issues/2763#issuecomment-666707445
Change-Id: I8232bd395abc9efea0e5c27716450d6a5442b3bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156489
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: William Hesse <whesse@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-08-04 21:01:09 +00:00
Brian Wilkerson
536b466be3
Add tests for unused_element for mixins
...
I also renamed a couple of existing tests, but the two tests for
detecting unused mixins are the only substantive changes.
Change-Id: I29001c9c1782395cd2824af6f8a25696e387bd3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156845
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-03 21:34:22 +00:00
Konstantin Shcheglov
7723fbb46d
Don't report DEAD_CODE hint for all required switch/case statements when legacy.
...
Bug: https://buganizer.corp.google.com/issues/162213706
Change-Id: I2ad6807194a974e6dc40f5f1cdd17f23196371a7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156941
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-03 21:11:02 +00:00
Sam Rawlins
c59cdee365
Analyzer: Move COULD_NOT_INFER tests out of inferred_type_test
...
Change-Id: I4470617c23b8e4a08370c1da66f945719e58f7a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156846
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-08-03 04:42:43 +00:00
Sam Rawlins
2d98d25e71
Analyzer: Remove instantiateToBounds tests from inferred_type_test
...
The NOT_INSTANTIATED_BOUND error is thoroughly tested in
not_instantiated_bound_test.dart. The resynthesized elements are
thoroughly tested in resynthesize_common.dart, including
notSimplyBounded classes.
Change-Id: I0f2380133900149bbc5cdc2d996ed071601f2421
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156844
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-08-02 21:12:12 +00:00
Konstantin Shcheglov
365525432a
Issue 42788. Report MISSING_REQUIRED_ARGUMENT for 'call'.
...
Bug: https://github.com/dart-lang/sdk/issues/42788
Change-Id: Icece8f0e9865e659187d556c582929efcb7d242e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156841
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-02 19:44:23 +00:00
Sam Rawlins
7e6c55e3aa
Move TopLevelInferenceTest off StrongTestHelper
...
Change-Id: I847de154a89e2bca1ca6e0028b7c4861ad9a0f23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156860
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-08-02 15:24:25 +00:00
Sam Rawlins
d169af6f7d
Analyzer: remove unnecessary this
...
Change-Id: I85a769e0c32159ac2a6422d3a60d160bda40d9b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156488
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-08-01 06:16:31 +00:00
Sam Rawlins
b8ce4baf7e
Remove 'checked mode' from checked_mode_compile_time_errors
...
Change-Id: I6576eb186149d540ce2dbc0e0aab7177ff4727be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156484
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-07-31 19:20:58 +00:00
Sam Rawlins
9f49ef9d82
Strict-inference: be lenient on @optionalTypeArgs classes
...
Fixes https://github.com/dart-lang/sdk/issues/42882
Change-Id: I01c7b12cdb36d06ab9d44fb080b15b30684cba3a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156583
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2020-07-30 22:48:04 +00:00
Konstantin Shcheglov
bd528bfbd6
Updates and tests for ReplaceTopBottomVisitor, fix hints.
...
Bug: https://github.com/dart-lang/sdk/issues/42196
Change-Id: If9350ccc4ad2908a2c7cde7281fe9e2f01c52f97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156561
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-30 19:12:38 +00:00
Mike Fairhurst
c9ee369a7c
[analyzer] Fix #41926 super bounded types broken for NNBD
...
`DartType.replaceTopAndBottom` needs to do different things for
NNBD/legacy code. Move this behavior into TypeSystemImpl with its own
responsible visitor.
Fixed: 41926
Change-Id: Ib0eca2384276998d5fdf99f2d9a210d86c999afa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156443
Auto-Submit: Mike Fairhurst <mfairhurst@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-30 16:37:48 +00:00
Konstantin Shcheglov
fb0578159e
Convert paths to absolute and normalized in analyzer_cli arguments.
...
See https://github.com/dart-lang/linter/pull/2189#issuecomment-665984938
Change-Id: I6becb616dd8bcb0c9945ea5ad5ac6119bb93e330
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156441
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-30 15:00:58 +00:00
Sam Rawlins
f925019c5a
Add tests for strict-inference on instance creation, fix constructor name
...
Fixes https://github.com/dart-lang/sdk/issues/42881
Change-Id: I0f21f106936e88c9e195fd789408ec590ee4f44d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156423
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-30 14:55:38 +00:00
Konstantin Shcheglov
3cb837ab54
Remove classes from InheritanceManager when remove libraries from LinkedElementFactory.
...
Change-Id: I4e5e824d0aa10838d0a717cae86d01db9a609dca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156422
Reviewed-by: Keerti Parthasarathy <keertip@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-30 07:34:02 +00:00
Mike Fairhurst
59600f2b46
[analyzer] Improve existing non-generative constructor errors
...
As opposed to the parent CL which creates a new error for cases where no
non-generative constructor is available at all, these improvements
include a bugfix to the previous error message.
The previous message was incorrect in saying 'expected {0} but factory found',
because the argument passed to '{0}' was the factory constructor that
was found, rather than any kind of expected constructor signature.
Fixed.
Also, for implicit constructors, break out the error message to
deliberately explicitly describe that this affects the implicit
constructor.
I considered making an error code for implicit super initializers as
well, (ie `class Foo extends Bar { Foo(); }`), but don't think it is
necessary/common/etc.
Change-Id: I0643ad00abbfb2848cbd2f8f1f83e7c33d4fb846
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155831
Commit-Queue: Mike Fairhurst <mfairhurst@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-30 05:12:40 +00:00
Mike Fairhurst
e0164ec47e
[analyzer] Fix #25874 , confusing error for extending Exception.
...
In the case of extending Exception, the raised error is around the
configuration of the constructors. However, there is no valid
configuration of constructors to be found, and therefore, the better
user facing message is to say that the class cannot be extended as
written.
Change-Id: I5950d438877c450c44cdc914f9f20d7779a64768
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154126
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-30 05:12:40 +00:00
Sam Rawlins
1dd3fccee9
Update strict-inference to not report 'unreferenced' parameters
...
This is the implementation CL for
https://github.com/dart-lang/language/pull/599
Change-Id: Icb0af8542a72093a8bdd599c768d5eff46841b9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155143
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-30 00:54:00 +00:00
Sam Rawlins
f23f450e11
Analyzer: Move CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH to compile-time
...
Many of the tests were highly redundant. Subtyping has been
consolidated, so the tests don't need to cover a dozen different ways
to subtype a class.
Change-Id: I04448790d3a74690d0edb57f15146a6c3b8f2173
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156400
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-30 00:34:29 +00:00
Konstantin Shcheglov
219107cca0
Report INVALID_ASSIGNMENT on the cascade target.
...
https://dart-review.googlesource.com/c/sdk/+/155380 has tests that
show that it is otherwise hard to specify where the offending
expression is.
Change-Id: I8cdbc3d974148d644b75889a8afd921a2a2716cd
Bug: https://github.com/dart-lang/sdk/issues/42865
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156067
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-29 23:04:49 +00:00
Konstantin Shcheglov
0b4896ac94
Resolve invalid prefix.name TypeName(s) to dynamic.
...
Change-Id: If449fcb37c2a095d37d34ea7c068fa85edb112c9
Bug: https://github.com/dart-lang/sdk/issues/42877
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156341
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-29 21:08:08 +00:00
Konstantin Shcheglov
86057443c4
Issue 42837. Use legacy erasure in LUB computation in opt-out libraries.
...
Bug: https://github.com/dart-lang/sdk/issues/42837
Change-Id: Id61e37404d6d2e8452daed2bbd730f32a8687ea6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-29 20:06:35 +00:00
Sam Rawlins
d4f912dadb
Analyzer: Move all remaining tests from compile_time_error_code.dart and remove
...
Change-Id: Id3c2a3df6aea0437b9e0798040ac76fa96a01215
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156080
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-29 02:51:50 +00:00
Sam Rawlins
de0848e7ea
Analyzer: Move tests out of old test file into diagonstics.
...
* Add non_const_call_to_literal_constructor to test_all.
* Clean up non_const_call_to_literal_constructor to avoid unused variables.
* Update NON_CONST_MAP_AS_EXPRESSION_STATEMENT tests to be failing tests.
Change-Id: I1ca9e18372c7b5acc7b8670f81ed89ed0aa18825
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155927
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-27 22:18:48 +00:00
Konstantin Shcheglov
f64d6dbb4f
Move and refactor LUB tests.
...
R=brianwilkerson@google.com
Change-Id: Ie17fd6f48d76222107a122c17ce58c00f5eeb186
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156062
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-27 21:34:38 +00:00
Konstantin Shcheglov
7c7e931c14
Update reporting INCONSISTENT_LANGUAGE_VERSION_OVERRIDE on part directives.
...
Change-Id: I100260b19d07c6ff7d172e9c31d4f99281a17807
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-27 16:45:15 +00:00
Konstantin Shcheglov
c21128767e
Use more shared asserts in UP/DOWN tests.
...
R=brianwilkerson@google.com
Change-Id: Iffd0d6d67a7606fea46fd5c422ceb928df031a6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155921
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-27 16:44:49 +00:00
Konstantin Shcheglov
8de8a1c226
Move codes from StaticTypeWarningCode into CompileTimeErrorCode.
...
They are all errors now.
Change-Id: If48d38e38e845fd5b5a950dd5514bf1cbbce03d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155880
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-27 16:44:15 +00:00
Sam Rawlins
01c217ecc9
Analyzer: Move tests for 5 codes to diagnostics/
...
Change-Id: I6545819d659f18b0bbd0cf79b10c564a0bd66777
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155848
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-27 04:56:14 +00:00
Sam Rawlins
1a829bbde0
Analyzer: Recategorize COULD_NOT_INFER as CompileTimeErrorCode
...
Change-Id: I2aec1fd6499fcbcc35e7cf9b765dd43559d3ef67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155846
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-26 22:27:39 +00:00
Konstantin Shcheglov
70aa3ac534
Update verify_diagnostics_test after moving to CompileTimeErrorCode.
...
TBR
R=brianwilkerson@google.com
Change-Id: I5a12ca2bfc0853563e2574644b6e74b0456e8629
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155922
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-26 21:05:43 +00:00
Konstantin Shcheglov
ba92b78acd
Move errors from StaticWarningCode to CompileTimeErrorCode.
...
Bug: https://github.com/dart-lang/sdk/issues/42821
Change-Id: I153c48d7a2e4a02026928e6203aacf8f2dc029ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155849
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-26 04:19:25 +00:00
Konstantin Shcheglov
8745cd5323
Use new Scope directly to simplify TypeNameResolver.
...
Change-Id: Ib3e78f2faca8a8cbdfb16d1a1bf5dc414cbf01ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155830
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 23:51:18 +00:00
Konstantin Shcheglov
6fc6c476b0
Updates for typed literals resolution tests.
...
Fixes for comments on https://dart-review.googlesource.com/c/sdk/+/155680
Change-Id: I7667fe0f323bce1503a15425a654af641ee2a6ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 21:46:39 +00:00
Konstantin Shcheglov
ac71a391a3
Add TypeSystemImpl.futureOrBase (), stop using iterable/mapForSetMapDisambiguation.
...
Change-Id: I44e2888751d4a60fd79468cd184d218f16279637
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155724
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 20:10:28 +00:00
Konstantin Shcheglov
9282f1b14a
Fix for invalid implicit downcast in InterfaceType.allSupertypes.
...
R=brianwilkerson@google.com
Change-Id: Ic4480fbab8ea8da6e9e8bb03ad95af66b3622618
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 19:33:15 +00:00
Sam Rawlins
c65b444145
Analyzer: Move TOP_LEVEL_CYCLE to be a compile-time error
...
Also remove duplication with RECURSIVE_COMPILE_TIME_CONSTANT.
Also write some tests for TOP_LEVEL_CYCLE.
Change-Id: I33cb765236a83bd925f9f0c6e65ac9398761c699
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155701
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 15:11:38 +00:00
Konstantin Shcheglov
c2d28d1569
Rename Null Safety tests.
...
R=brianwilkerson@google.com
Change-Id: I9276244cab52cb5c0f2687052f2a3df9a9fd48b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-24 00:26:08 +00:00
Konstantin Shcheglov
6d9a4f16dd
Issue 42757. Implement null spread element typing with null-safety.
...
Bug: https://github.com/dart-lang/sdk/issues/42757
Change-Id: I6c0080402d8eb13aef8097ecf70025736002c3d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155680
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-23 22:36:48 +00:00
Sam Rawlins
6c9b885e57
Remove StrongModeCode.INVALID_PARAMETER_DECLARATION; it's redundant
...
You can see in the included test that we already report
`FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE`.
Change-Id: Ib7c4177627120a31910d3929d61f5337cb869b1d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155281
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-23 20:30:50 +00:00
Sam Rawlins
8796382840
Analyzer: Move invalid_super_invocation to compile-time error
...
Change-Id: Id8be8473b2516cfc15c226edaaf25dadf3a90d3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155549
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-23 18:15:04 +00:00
Konstantin Shcheglov
cece303eb4
Check diagnostics in List/Map/SetLiteralTest(s).
...
We usually check for errors in resolution tests.
Here we have more diagnostings than usually, but it still seems right
to check and don't hide it.
R=brianwilkerson@google.com
Change-Id: I27ca020f2be34d4e5483e2c0f2a216f75ff5bc43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155542
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-23 16:38:03 +00:00
Konstantin Shcheglov
58b6f40c73
Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns. (reland)
...
Initial: https://dart-review.googlesource.com/c/sdk/+/155500
Reverted: https://dart-review.googlesource.com/c/sdk/+/155540
Bug: https://github.com/dart-lang/sdk/issues/42797
Change-Id: I5f0f1df594ac678718f347ee80b1764f971e42e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155541
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-23 00:01:12 +00:00
Konstantin Shcheglov
8c664d4f3f
Revert "Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns."
...
This reverts commit 6bba75079a .
Reason for revert: Starts reporting new hints in front-end libraries. Breaks bots. Will clean-up and reland.
Original change's description:
> Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
>
> R=brianwilkerson@google.com
>
> Bug: https://github.com/dart-lang/sdk/issues/42797
> Change-Id: I14e50c231935a4025d33762843f5a54a1ee2154c
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155500
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
TBR=scheglov@google.com ,brianwilkerson@google.com
Change-Id: I99e845d9bd1d9c0882fecc8d72d18d5582454461
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/42797
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155540
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-07-22 20:56:51 +00:00
Konstantin Shcheglov
5171534e81
Scope tweaks. Report REFERENCED_BEFORE_DECLARATION in more places.
...
Change-Id: Iac395adf15c3f636e3e7e7241e0573f83ab61372
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155304
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-22 19:15:59 +00:00
Konstantin Shcheglov
6bba75079a
Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
...
R=brianwilkerson@google.com
Bug: https://github.com/dart-lang/sdk/issues/42797
Change-Id: I14e50c231935a4025d33762843f5a54a1ee2154c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155500
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-22 19:13:57 +00:00
William Hesse
24c7666def
Update tests that have the current version number hardcoded
...
Some package configuration tests have the current version hardcoded
in local package_config.json files. Update these from 2.9 to 2.10.
Change-Id: I77bf63c0e5dfa73aa8a86fb1b4e8a404e8cfaa7f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155441
Reviewed-by: Martin Kustermann <kustermann@google.com >
2020-07-22 13:22:07 +00:00
Konstantin Shcheglov
6f8ce20c99
Move asInstanceOf(ClassElement) to DartType.
...
This follows to the change to the specification.
https://github.com/dart-lang/language/pull/1106
R=brianwilkerson@google.com
Change-Id: I6575f201161c454de98e9bcbec74b9974d91d062
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155242
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-07-22 01:22:05 +00:00
Sam Rawlins
041e0dd618
Analyzer: Enforce strict-inference
...
Change-Id: Iba49bfa7cf10f8a3b1d3be03e73fdca280f0940a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155062
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-07-22 00:44:55 +00:00