Anton Yalyshev
fe5e968896
Add change-notes for 1.5.0 release
2021-04-21 14:13:46 +03:00
Vladimir Dolzhenko
590a8d088d
Refine locking to avoid dead lock
...
#KT-46215 Fixed
2021-04-21 11:01:12 +00:00
Mikhail Glukhikh
6ae4c3f281
Drop state from FirMethodOfAnyImplementedInInterfaceChecker
2021-04-21 13:22:14 +03:00
Mikhail Glukhikh
e0fe122ee9
Drop stored types from FirInlineClassDeclarationChecker
2021-04-21 13:22:13 +03:00
Mikhail Glukhikh
9bc3404833
Drop state from FirInapplicableLateinitChecker
2021-04-21 13:22:11 +03:00
Mikhail Glukhikh
e0c8a6658b
FIR: handle annotations on non-containers more precisely
2021-04-21 13:22:10 +03:00
Mikhail Glukhikh
04daf8fce8
FIR: add messages for two accessor diagnostics
2021-04-21 13:22:09 +03:00
Julia
387dafb8c5
[FIR] Introduce AnnotationUsedAsAnnotationArgumentChecker
2021-04-21 13:22:07 +03:00
Alexander Udalov
27ddc31f15
Ignore codegen test using streams on Android
2021-04-21 11:39:08 +02:00
Dmitry Petrov
59de12c609
Minor: mute bytecode text check in some box tests failing in FIR
2021-04-21 11:27:12 +03:00
Dmitry Petrov
f519150c08
JVM_IR KT-46189 lower tailrec functions after local declarations
2021-04-21 11:27:11 +03:00
Sergey Bogolepov
645014092c
Add a mention of KT-46231.
2021-04-21 15:14:33 +07:00
Ilya Gorbunov
4ae5efd6da
Prevent calling AssertContentEquals with two Set arguments
...
It's unclear whether these sets are intended to be compared with
the unordered Set equality, or with the ordered Iterable equality.
KT-32996
2021-04-21 03:08:35 +03:00
Alexander Udalov
21e9bd7ea2
Add regression tests for obsolete issues
...
#KT-9304
#KT-14961
#KT-16549
#KT-21080
#KT-28234
#KT-30102
#KT-31994
#KT-34291
#KT-38099
#KT-41174
#KT-44622
#KT-44701
#KT-44781
#KT-44849
#KT-44978
#KT-45081
#KT-45286
#KT-45383
#KT-45444
#KT-45907
2021-04-20 21:24:29 +02:00
Ivan Gavrilovic
2666a93e6a
[Gradle] Avoid using dependsOn and add output provider to the file collection
2021-04-20 22:13:25 +03:00
Alexander Udalov
e6c089ef40
IR: fix SAM conversion for types with contravariant intersection argument type
...
In the added test, the problem was that the SAM type as computed by
`SamTypeFactory.createByValueParameter` was `Consumer<{BaseClass &
BaseInterface}>`, which was latter approximated in psi2ir during the
KotlinType->IrType conversion to `Consumer<out Any?>` (here:
https://github.com/JetBrains/kotlin/blob/3034d9d791cf1f9033104e12448e0d262d3bc3ce/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ArgumentsGenerationUtils.kt#L606 ),
because intersection type argument is approximated to `out Any?`.
To avoid this, replace intersection type in immediate arguments of a SAM
type with the common supertype of its components at the same place where
we're getting rid of projections.
#KT-45945 Fixed
2021-04-20 17:31:14 +02:00
Andrey Zinovyev
ac0af39660
[FIR][LT] Enable parallel execution for LT tests
2021-04-20 18:13:07 +03:00
Andrey Zinovyev
0a811bdd1a
[FIR][LT] Don't store lexer in static context
2021-04-20 18:13:06 +03:00
Andrey Zinovyev
5fc1514104
[FIR][LightTree] Better expression identification
...
And some refactoring
Regenerate IDE parts
2021-04-20 18:13:06 +03:00
Andrey Zinovyev
2f7d6da22f
[FIR][LightTree] Generate and fix missing tests
...
Add TYPE_PARAMETERS_LIST positioning
Use whole branch as source in when branches
2021-04-20 18:13:05 +03:00
Andrey Zinovyev
b9ae22207e
[FIR] Fix tests data for diagnostic tests
...
For tests failed after light tree changes
2021-04-20 18:13:03 +03:00
Andrey Zinovyev
ee48fc320d
[FIR][LightTree] Mark fake nodes in FOR loop
...
+ fix bunch of tests
2021-04-20 18:13:02 +03:00
Andrey Zinovyev
0a68edf3bd
[FIR][LightTree] More fixes in diagnostic positioning
...
Keep tree padding for modifiers
More REFERENCE_EXPRESSIONS kinds
Fix source for some call expressions
2021-04-20 18:13:01 +03:00
Andrey Zinovyev
f3dc8dfb21
[FIR][LightTree] Use same fake elements kinds as in psi
...
Otherwise type resolution(!) for empty lambda works differently
2021-04-20 18:13:00 +03:00
Andrey Zinovyev
e8e9f67069
[FIR][LightTree] Enum and property source fixes
...
Also set dispatchReceiverType for properties from value params
2021-04-20 18:12:59 +03:00
Andrey Zinovyev
1fb8c3b1d7
[FIR][LightTree] Properly unwrap function inside parentheses
2021-04-20 18:12:58 +03:00
Andrey Zinovyev
05f0507cbb
[FIR][LightTree] Proper source for enum constructor call
2021-04-20 18:12:57 +03:00
Andrey Zinovyev
bed45affe1
[FIR][LightTree] Don't report diagnostics on some nameless declarations
2021-04-20 18:12:56 +03:00
Andrey Zinovyev
684c4c2825
[FIR][LightTree] Don't position on trailing comments
2021-04-20 18:12:55 +03:00
Andrey Zinovyev
0d99b01dcb
[FIR][LightTree] Pass source elements in FOR loop parts
2021-04-20 18:12:54 +03:00
Andrey Zinovyev
8bbdc20809
[FIR][LightTree] Pass source elements in when conditions
2021-04-20 18:12:54 +03:00
Andrey Zinovyev
9c8e92f5af
[FIR][LightTree] Fix DEFAULT positioning strategy for object literals
2021-04-20 18:12:53 +03:00
Andrey Zinovyev
70f9b77cce
[FIR][LightTree] Keep source in FOR loop elements
2021-04-20 18:12:52 +03:00
Andrey Zinovyev
27766c2575
[FIR] Consistent isLocal for objects inside Enum entries
2021-04-20 18:12:51 +03:00
Andrey Zinovyev
7084fec651
[FIR][LightTree] Position strategies fixes
...
Skip leading comments in DEFAULT strategy
Keep node offset 'padding' when getting child
2021-04-20 18:12:50 +03:00
Andrey Zinovyev
8ea3b52454
[FIR][LightTree] Fix finding error nodes in tree
...
When there are links to to 'upper levels' lt elements in fir tree
2021-04-20 18:12:49 +03:00
Andrey Zinovyev
dc19e39dd2
[FIR][LightTree] Properly locate return keyword
2021-04-20 18:12:47 +03:00
Andrey Zinovyev
088db0e138
[FIR] Report SEALED_CLASS_CONSTRUCTOR_CALL on expression
2021-04-20 18:12:46 +03:00
Andrey Zinovyev
48994976d4
[FIR][LightTree] Skip comments and whitespaces when marking elements
2021-04-20 18:12:45 +03:00
Andrey Zinovyev
dcbb1fb22b
[FIR][LightTree] Extract syntax errors from subtrees
2021-04-20 18:12:45 +03:00
Andrey Zinovyev
7dedd04ed9
[FIR] Add SYNTAX diagnostics for light tree
2021-04-20 18:12:43 +03:00
Dmitriy Novozhilov
3e0eb06e3e
[FIR] Add FirOldFrontendDiagnosticsWithLightTreeTestGenerated
2021-04-20 18:12:42 +03:00
Igor Yakovlev
e4870740e1
[LC] Fixed light classes nullability for Kotlin 1.5
...
Fixed #KT-44472
2021-04-20 15:21:12 +02:00
Igor Yakovlev
63160293fb
[LC] Fix invalid nullability for properties
...
Fixed #KT-46097 and #KT-41671
2021-04-20 15:21:12 +02:00
Andrey Zinovyev
8071a1e246
[KAPT] Keep constant references in annotations with array values
...
#KT-29929 Fixed
2021-04-20 15:47:03 +03:00
Yahor Berdnikau
9e9450caa2
Fix adding associated compilation for Kotlin Native.
...
Kotlin native does not support 'compileOnly' or 'runtimeOnly'
configurations. In this case associated compilations are added as
'implementation'.
^KT-45911 Fixed
2021-04-20 10:15:15 +02:00
Abduqodiri Qurbonzoda
57c4f79c1c
Update Char.digitToInt documentation
2021-04-20 04:36:05 +03:00
Ilya Kirillov
26e39b3d2a
FIR IDE: do not resolve all members for getting inner classes for light classes
2021-04-20 01:32:26 +03:00
Ilya Kirillov
051310124b
FIR IDE: do not fail duplicating classes with members
2021-04-20 01:32:25 +03:00
Mark Punzalan
73b796f184
FIR IDE: Enable RemoveExclExclCallFix for UNNECESSARY_NON_NULL_ASSERTION.
2021-04-19 22:29:07 +02:00