Victor Petukhov
d015d3bc0e
Don't enhance previously erased value parameters for jspecify strict mode
...
^KT-48261 Fixed
2021-10-26 19:37:55 +03:00
Denis.Zharkov
5690a9f21b
FIR: Fix overridability of Kotlin vararg from Java
2021-10-26 18:45:59 +03:00
Denis.Zharkov
4b1ce6c1a7
FIR: Fix safe call receiver nullability after null check
2021-10-26 18:45:59 +03:00
Denis.Zharkov
2a8eacd4ba
FIR2IR: Fix exception when local class used before declaration
2021-10-26 18:45:59 +03:00
Denis.Zharkov
0bdea4f20a
FIR: Do not create incorrect synthetic property
2021-10-26 18:45:59 +03:00
Denis.Zharkov
52c2908bb7
FIR: Fix another inconsistency with FE1.0 in synthetic properties resolution
2021-10-26 18:45:59 +03:00
Denis.Zharkov
16e8e0e58b
FIR: Add test on raw type scope
...
^KT-49351 Related
2021-10-26 18:45:58 +03:00
Denis.Zharkov
94129dce2e
FIR: Add a test with current behavior on upper bounds with raw types
...
^KT-49345 Related
2021-10-26 18:45:58 +03:00
Mikhail Glukhikh
37b95972db
Uncomment warning about -Xopt-in deprecation
2021-10-26 13:38:40 +03:00
Ivan Kochurkin
489c9ae11f
[FIR2IR] Recognize postfix inc/dec blocks in sequence of statements
2021-10-25 21:21:45 +03:00
Ivan Kochurkin
82591bb107
[FIR2IR] More accurate equals intrinsic for double/float types
2021-10-25 21:21:43 +03:00
Ivan Kochurkin
b4fada82ae
[FIR2IR] Fix conversion of loops with withIndex
2021-10-25 21:21:42 +03:00
Ivan Kochurkin
3210a2a950
[FIR2IR] Recognize postfix inc/dec pattern from block statements
2021-10-25 21:21:40 +03:00
Ivan Kochurkin
0d91e16a15
[FIR2IR] Fix considering of Contains intrinsic
2021-10-25 21:21:40 +03:00
Ivan Kochurkin
15d23f2a72
[FIR2IR] Fix applying of equals intrinsics
2021-10-25 21:21:39 +03:00
Ivan Kochurkin
31507e7e7e
[FIR2IR] Fix origin for desugared blocks (to enable jvm optimization lowering)
...
Move getIrAssignmentOrigin to ConversionUtils
2021-10-25 21:21:37 +03:00
Ivan Kochurkin
4bafa8628e
[FIR2IR] Fix generating of IINC instruction with FIR for inc/dec with constants
2021-10-25 21:21:35 +03:00
Ivan Kochurkin
98596eaa08
[FIR2IR] Fix generating of IINC instruction with FIR for inc/dec operations
2021-10-25 21:21:33 +03:00
Dmitry Petrov
c441980c74
JVM_IR don't move inplace arguments with variable stores
...
KT-49370
KT-49407
2021-10-25 20:11:42 +03:00
Dmitry Petrov
45a4cea655
IR KT-49372 cache progression loop parameters if their values can change
2021-10-25 19:03:13 +03:00
Roman Artemev
9f52326d14
[JS IR] Fix default arguments in suspend functions
...
Don't forget to remap parameter references in default arg expressions
The issue originally discovered in kotlinx.coroutines tests.
- add test
2021-10-25 12:56:16 +00:00
Tianyu Geng
363b25504d
FIR checker: report REDUNDANT_LABEL_WARNING
...
Since many labels are not present in the FIR tree, this checker is
implemented as a syntax checker. Comparing with FE1.0, this change
reports some REDUNDANT_LABEL_WARNING that FE1.0 has missed, especially
LHS of assignments.
2021-10-25 13:51:01 +03:00
Dmitriy Novozhilov
f7bb55433d
Add LanguageVersion and ApiVersion for 1.8
2021-10-25 12:54:10 +03:00
Ivan Kylchik
0d02b1d51c
[TESTS] Remove ignore js backend directive from some tailRecursion tests
...
These tests were falling due to inserted diagnostics. New test
infrastructure can remove them before running test.
2021-10-25 00:14:19 +03:00
Ivan Kylchik
f4bbcdc013
[TESTS] Move global directives outside file scope
2021-10-25 00:14:19 +03:00
Ivan Kylchik
596cbdfb71
[TESTS] Remove jvm specific annotations from coroutine helpers
2021-10-25 00:14:18 +03:00
Dmitry Petrov
b03c9b6fc6
JVM_IR additional tests for indy lambda serialization
2021-10-23 11:21:27 +03:00
Dmitry Petrov
6e9cbf52b1
JVM_IR make $deserializeLambda$ method synthetic
2021-10-23 11:21:26 +03:00
Dmitry Petrov
1dbbe22c8c
JVM_IR serializable indy method references
2021-10-23 11:21:25 +03:00
Svyatoslav Kuzmich
4fc461a2ff
[Wasm] Imporove external interface support
...
* Support boxing/unboxing when casting to Any
* Support ===, equals, hashCode, toString
* Support adapting String in interop boundary
2021-10-23 01:26:12 +03:00
Mikhail Glukhikh
7b9ac4c5f7
FIR: create constructors copies with correct containers in JvmMappedScope
...
#KT-49133 Fixed
2021-10-23 01:17:10 +03:00
Dmitry Petrov
d5f6674d2d
JVM_IR KT-49335 run RepeatedAnnotationLowering per module
...
Otherwise, we drop annotation constructors in AnnotationLowering,
which breaks RAL in case of annotation container declared in different
file.
2021-10-21 21:22:36 +03:00
Dmitriy Novozhilov
a2b8493f47
[FE 1.0] Prohibit using non exhaustive if and when in rhs of elvis expression
...
^KT-44705
^KT-49349 Fixed
2021-10-21 19:39:51 +03:00
Dmitriy Novozhilov
06a26a5a74
[FE 1.0/FIR] Fix message of SEALED_SUPERTYPE_IN_LOCAL_CLASS diagnostic
...
^KT-46285 Fixed
2021-10-21 19:39:49 +03:00
Dmitriy Novozhilov
94664694df
[FIR] Prohibit confusing syntax inside when branches
...
^KT-48385
2021-10-21 19:39:46 +03:00
Dmitriy Novozhilov
f52361ac2b
[FE 1.0] Properly report NON_TRIVIAL_BOOLEAN_CONSTANT on parenthesized expressions
...
^KT-39883
2021-10-21 19:39:39 +03:00
Dmitriy Novozhilov
1513e739c6
[FE 1.0] Prohibit confusing syntax inside when branches
...
^KT-48385 Fixed
2021-10-21 19:39:36 +03:00
Tianyu Geng
c262f17d75
FIR checker: report violations related to API mode
2021-10-21 00:01:14 +03:00
Tianyu Geng
52b247937e
FIR checker: fix positioning of CONFLICTING_IMPORT
...
FE1.0 puts it on the alias when applicable.
2021-10-21 00:00:29 +03:00
Denis.Zharkov
4ad5f01324
FIR: Support overrides of generic-typed members with raw-typed ones
...
^KT-49070 Fixed
2021-10-20 22:05:25 +03:00
Denis.Zharkov
a0a57581ec
FIR: Do not add alias for variables with explicit type
2021-10-20 22:05:24 +03:00
Denis.Zharkov
fba44759c0
FIR: Refine visibility check for class members
2021-10-20 22:05:23 +03:00
Ilmir Usmanov
2b8963455f
Use a separate diagnostic for 'suspend fun' sequence
...
instead of reusing existing one, since existing one
is ERROR, and we cannot turn code red without deprecating
it with WARNING.
#KT-49264
2021-10-20 18:12:10 +02:00
Nikolay Lunyak
dbfe3524ce
[FIR] Add FirDelegateUsesExtensionPropertyTypeParameterChecker
2021-10-20 16:49:51 +03:00
Mikhail Glukhikh
29e4c299e7
FIR: add & use hasExplicitParameterList to anonymous functions
...
#KT-49134 Fixed
2021-10-19 11:58:23 +03:00
Ilmir Usmanov
3f8fa3149b
Support extensions in functional supertypes
...
Under a flag for now.
2021-10-18 18:53:26 +03:00
Sergej Jaskiewicz
9e5520bba8
[JS IR & WASM] Fix executing init blocks for enums with nested objects
2021-10-18 13:37:16 +00:00
Abduqodiri Qurbonzoda
a3755a8e94
@UseExperimental -> @OptIn in compiler testData
2021-10-17 21:14:37 +00:00
Mads Ager
e9c9d5731e
[JVM] Port Stepping and LocalVariable tests to new test infra.
...
This is in preparation for enabling the tests for FIR which will
be easier to do when the tests are on the new infrastructure.
2021-10-15 20:03:54 +03:00
Mark Punzalan
167dc81d3b
FIR/Analysis API: Get parameter name from function type notation or
...
`@ParameterName` annotation, which is also now added during type
resolution.
2021-10-15 16:19:00 +03:00