Ivan Kochurkin
|
cd6384eb20
|
[FIR] Fix handling of WRONG_MODIFIER_TARGET
Implement DEPRECATED_MODIFIER, DEPRECATED_MODIFIER_FOR_TARGET, REDUNDANT_MODIFIER_FOR_TARGET
|
2021-08-13 18:32:27 +03:00 |
|
Tianyu Geng
|
06ee84f809
|
FIR checker: report AMBIGUOUS_SUPER
|
2021-08-10 19:36:44 +03:00 |
|
Tianyu Geng
|
bcf6202863
|
FIR checker: fix position strategy for UNRESOLVED_LABEL
|
2021-08-10 19:36:04 +03:00 |
|
Tianyu Geng
|
c7272f6986
|
FIR checker: SENSELESS_(COMPARISON|NULL_IN_WHEN)
Currently DFA does not set "definitely equal to null" for access to variables that got assigned `null`. For example, FIR should mark the following line as SENSELESS_COMPARISON due to `s = null` above.
https://github.com/JetBrains/kotlin/blob/d1531f9cdd5852352c0133198706125dc63b6007/compiler/testData/diagnostics/tests/smartCasts/alwaysNull.fir.kt#L6
The problem is at https://github.com/JetBrains/kotlin/blob/7e9f27436a77de1c76e3705da7aa1fbe8938336b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/FirDataFlowAnalyzer.kt#L1104
For null assignment, ideally the type should be `Nothing?`. This is
addressed in a followup commit instead.
|
2021-08-06 22:57:16 +03:00 |
|
Victor Petukhov
|
13cb3c138a
|
Update FE tests
|
2021-08-04 17:36:53 +03:00 |
|
Victor Petukhov
|
cf3bd016be
|
Always complete calls not related to the builder inference
^KT-47830 Fixed
|
2021-08-04 17:36:52 +03:00 |
|
Andrey Zinovyev
|
c46a393a19
|
[FIR] Add REDUNDANT_INLINE_SUSPEND_FUNCTION_TYPE diagnostic
|
2021-08-04 17:33:15 +03:00 |
|
Andrey Zinovyev
|
e56deb4525
|
[FIR] Add INLINE_SUSPEND_FUNCTION_TYPE_UNSUPPORTED diagnostic
|
2021-08-04 17:33:14 +03:00 |
|
Andrey Zinovyev
|
015c2d1875
|
[FIR] Add NOTHING_TO_INLINE diagnostic
|
2021-08-04 17:33:08 +03:00 |
|
Andrey Zinovyev
|
ec4cbfef59
|
[FIR] UNREACHABLE_CODE diagnostic (wip)
Implementation for PSI only
|
2021-08-04 14:42:24 +03:00 |
|
Dmitriy Novozhilov
|
b584fed93d
|
[FIR] Migrate warning/error pairs to DiagnosticFactoryForDeprecation
|
2021-08-03 00:20:11 +03:00 |
|
Dmitriy Novozhilov
|
d17f984edf
|
[FE 1.0] Migrate most of warning/error pairs to DiagnosticFactoryForDeprecation
|
2021-08-03 00:17:33 +03:00 |
|
Mikhail Glukhikh
|
5283f7b7c6
|
Make EXPERIMENTAL_API_USAGE_ERR warning till 1.6 for fake override case
|
2021-07-30 21:21:51 +03:00 |
|
Mikhail Glukhikh
|
807f031dcc
|
FIR: introduce RETURN_FOR_BUILT_IN_SUSPEND diagnostic
|
2021-07-30 19:06:53 +03:00 |
|
Mikhail Glukhikh
|
229dfd3f5f
|
FIR: introduce builtin suspend related diagnostics
|
2021-07-30 19:06:51 +03:00 |
|
Mikhail Glukhikh
|
391c4db87c
|
FIR: introduce ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL diagnostics
|
2021-07-30 19:06:49 +03:00 |
|
Mikhail Glukhikh
|
2397650c24
|
FIR: introduce NON_LOCAL_SUSPENSION_POINT diagnostic
|
2021-07-30 19:06:48 +03:00 |
|
Mikhail Glukhikh
|
8f1d07084b
|
FIR: introduce ILLEGAL_SUSPEND_FUNCTION_CALL & PROPERTY_ACCESS diagnostics
|
2021-07-30 19:06:46 +03:00 |
|
Mikhael Bogdanov
|
4fe846fb81
|
Fix test affected by InstantiationOfAnnotationClasses feature
|
2021-07-29 19:45:57 +02:00 |
|
Denis.Zharkov
|
d2ad421e0b
|
Fix test data for definitelyNotNullType
|
2021-07-29 19:45:57 +02:00 |
|
Mikhael Bogdanov
|
baaa615e09
|
Update FirOldFrontendDiagnosticsTestGenerated tests
|
2021-07-29 19:45:56 +02:00 |
|
Victor Petukhov
|
d2a7434cff
|
Update testdata
|
2021-07-29 19:45:56 +02:00 |
|
Dmitriy Novozhilov
|
e316cd04b6
|
[FIR] Fix consistency of FE 1.0 and FIR test data
|
2021-07-29 19:45:56 +02:00 |
|
Alexander Udalov
|
0ed9b75428
|
Minor, fix diagnostic test data for FIR
|
2021-07-29 19:45:55 +02:00 |
|
Victor Petukhov
|
95492f7370
|
[FE 1.0] Fix some diagnostic tests
|
2021-07-29 19:45:55 +02:00 |
|
Mikhael Bogdanov
|
c9c82ab3a6
|
Update test affected by SafeCallsAreAlwaysNullable feature
|
2021-07-29 19:45:55 +02:00 |
|
Mikhael Bogdanov
|
cc5ba4c0af
|
Update diagnostic tests
|
2021-07-29 19:45:54 +02:00 |
|
Mikhail Glukhikh
|
84bd347841
|
Make EXPERIMENTAL_API_USAGE_ERR warning till 1.6 for signature type case
|
2021-07-27 14:58:56 +03:00 |
|
Mikhail Glukhikh
|
810def829c
|
Make EXPERIMENTAL_ANNOTATION_ON_OVERRIDE warning till 1.6
|
2021-07-27 14:58:55 +03:00 |
|
Ivan Kochurkin
|
173813f7cf
|
[FIR] Implement REIFIED_TYPE_FORBIDDEN_SUBSTITUTION
|
2021-07-26 21:13:25 +03:00 |
|
Ivan Kochurkin
|
bade6cb611
|
[FIR] Improve TYPE_PARAMETER_AS_REIFIED detecting, implement TYPE_PARAMETER_AS_REIFIED_ARRAY, TYPE_PARAMETER_AS_REIFIED_ARRAY_WARNING
|
2021-07-26 21:13:25 +03:00 |
|
Mikhail Glukhikh
|
7cbea12c8a
|
FIR: store all annotationContainers in checker context
|
2021-07-23 23:58:58 +03:00 |
|
Mikhail Glukhikh
|
d020948933
|
FIR: support EXPERIMENTAL_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION...
|
2021-07-23 23:58:57 +03:00 |
|
Mikhail Glukhikh
|
82f268d611
|
FIR: add EXPERIMENTAL_API_USAGE reporting
|
2021-07-23 23:58:55 +03:00 |
|
Dmitriy Novozhilov
|
a710a8d10f
|
[FE 1.0] Report warning on non-exhaustive when statements only after 1.6
^KT-47709
|
2021-07-21 17:53:05 +03:00 |
|
Andrey Zinovyev
|
15be38192b
|
[FIR] Mark implicit types in accessors as fake
To not check their types in deprecation checker
|
2021-07-20 14:25:14 +03:00 |
|
Dmitriy Novozhilov
|
a6edd852ff
|
[FIR] Report NON_EXHAUSTIVE_WHEN_STATEMENT/NO_ELSE_IN_WHEN for when's on logical types
^KT-47709 In Progress
|
2021-07-20 13:33:44 +03:00 |
|
Dmitriy Novozhilov
|
ef635f6a96
|
[FE 1.0] Report NON_EXHAUSTIVE_WHEN_STATEMENT/NO_ELSE_IN_WHEN for when's on logical types
^KT-47709 In Progress
|
2021-07-20 13:33:43 +03:00 |
|
Andrey Zinovyev
|
7e9f27436a
|
[FIR] Fix cfg for safe call inside elvis
|
2021-07-19 13:40:31 +03:00 |
|
Andrey Zinovyev
|
a6984c5198
|
[FIR] Add NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY diagnostic
|
2021-07-19 13:40:28 +03:00 |
|
Victor Petukhov
|
6a1ec92d39
|
Introduce specific error for calls which could be resolved only with unrestricted builder inference
^KT-47747 Fixed
|
2021-07-16 19:32:36 +03:00 |
|
pyos
|
f5dd5ead1f
|
JVM: produce a better error on @JvmStatic external in interface
Java does not permit `static native` methods in interfaces, so this
never worked on any existing JRE.
#KT-43696 Fixed
|
2021-07-16 15:24:09 +02:00 |
|
Mikhail Glukhikh
|
113d2653aa
|
Drop deprecated -Xexperimental flag from compiler and tests
|
2021-07-14 21:18:23 +03:00 |
|
Dmitriy Novozhilov
|
7b5a5f5682
|
[FE 1.0] Report USELESS_IS_CHECK if is expression is always false
^KT-47684 Fixed
|
2021-07-13 10:35:01 +03:00 |
|
Mikhail Glukhikh
|
a92ab1bc86
|
Deprecate EXPERIMENTAL_IS_NOT_ENABLED diagnostic #KT-47638 Fixed
|
2021-07-12 21:26:20 +03:00 |
|
Mikhail Glukhikh
|
d9531f0c61
|
Don't report EXPERIMENTAL_ANNOTATION_ON_WRONG_TARGET for forbidden targets
#KT-47589 Fixed
|
2021-07-12 21:26:15 +03:00 |
|
Andrey Zinovyev
|
02297d2c75
|
[FIR] Rollback exposure of j.u.List.sort method
|
2021-07-08 18:13:51 +03:00 |
|
Andrey Zinovyev
|
b44785c24e
|
[FIR] NOTHING_TO_OVERRIDE diagnostic
|
2021-07-08 18:13:47 +03:00 |
|
Andrey Zinovyev
|
3f7d050f8f
|
[FIR] Implement CONFLICTING_INHERITED_MEMBERS diagnostic
|
2021-07-08 18:13:44 +03:00 |
|
Andrey Zinovyev
|
de3f31cf78
|
[FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
No support for inheritance deprecations
and deprecations in qualifier's parts
|
2021-07-07 16:19:28 +03:00 |
|