Kirill Shmakov
ec8465859c
Support rerun of MPP tests for jvm target
2020-09-22 14:44:22 +03:00
Kirill Shmakov
23642d2f86
Support rerun of common MPP tests
...
This is to fix #KT-36909
2020-09-22 14:44:19 +03:00
Toshiaki Kameyama
c09c0468d4
Replace deprecated symbol usage: move named lambda argument outside parentheses
...
#KT-31523 Fixed
2020-09-22 10:51:36 +02:00
Toshiaki Kameyama
d9cf4ee732
Add intention to evaluate compile time expression
...
#KT-40251 Fixed
2020-09-22 10:46:54 +02:00
Mark Punzalan
8cac3f654c
[FIR] Handle pre/postfix dec/increment of labeled expression
2020-09-22 11:06:27 +03:00
Mark Punzalan
f55ff8eb1b
[FIR] Capture receiver for pre/postfix dec/increment of qualified access
...
This prevents double-evaluation of the receiver expression, which may
have side-effects. E.g.: a.b++
2020-09-22 10:20:46 +03:00
Mikhail Glukhikh
393189db8d
FIR JVM serializer: fix compilation after rebase
2020-09-22 09:54:43 +03:00
pyos
6e143a2656
JVM_IR: collect free type parameters when serializing FIR metadata
...
The "free" in "createFreeFakeLambdaDescriptor" and such refers to the
fact that there are no references to type parameters from outside the
current declaration. This is necessary because at the point where the
metadata is written, the type parameters may not even be in scope (e.g.
local delegated properties are serialized at class level, but may refer
to function-scope type parameters).
2020-09-22 09:35:50 +03:00
pyos
aa58ed9234
JVM_IR: partially implement FIR local delegated property reflection
...
Type parameter references are broken, just like for lambdas. Also, the
code is super ugly.
2020-09-22 09:35:45 +03:00
Alexander Udalov
6f622920e7
Minor, deduplicate matching JVM_OLD/JVM_IR duplicateJvmSignature tests
2020-09-21 18:49:36 +02:00
Mads Ager
05c662ec55
[JVM_IR] Remove line numbers from delegated member functions.
...
This fixes smart step into for delegated member functions.
Additionally, we align on the string "memberFunctionName(...)"
for expression non-null checks for both JVM_IR and JVM
backends.
2020-09-21 18:49:08 +02:00
Leonid Startsev
eea4ff33a0
Adapt serialization exceptions constructor calls to signature change
...
(see https://github.com/Kotlin/kotlinx.serialization/pull/1054 )
2020-09-21 17:10:12 +03:00
Leonid Startsev
fe5dbf75fa
Add diagnostic to check whether provided custom serializer matches
...
type of the property.
Check for serializer type mismatch only when custom serializer is present
Otherwise, there are too many false positives on e.g. PolymorphicSerializer
#KT-36329 Fixed
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/830
2020-09-21 17:10:12 +03:00
Leonid Startsev
bc432ecb85
Improve remove/specify type intentions in Explicit API mode
...
Do not suggest to remove type for public declarations
#KT-38915 Fixed
Do not show intention to specify type when corresponding quickfix is available
#KT-39026 Fixed
2020-09-21 17:10:10 +03:00
Leonid Startsev
5f0e7c3c3f
Check return type of internal @PublishedApi functions in Explicit API mode
...
#KT-38981 Fixed
2020-09-21 17:03:06 +03:00
Mikhail Glukhikh
a9972913a6
[FIR TEST] Add some FIR_IDENTICAL to fix recently changed tests
2020-09-21 16:20:37 +03:00
Andrey Uskov
c9054e7a04
Added possibility to split gradle-integration-tests locally
...
Added property `gradle.integration.tests.split.tasks` for splitting
gradle-integration-tests into several tasks locally (like it happens
at TeamCity)
2020-09-21 13:34:32 +03:00
Andrey Uskov
d151f0e573
Fixed splitting gradle tests into different tasks
2020-09-21 13:34:25 +03:00
Dmitry Savvinov
769c741d87
Revert "Pack jvm builtins into kotlin-stdlib shipped with idea plugin"
...
This reverts commit 0b5aedb0a2 .
2020-09-18 17:30:44 +03:00
Dmitry Savvinov
6db70bb97d
Minor: fix forgotten testdata after 6a55475392
2020-09-18 16:42:49 +03:00
Ilya Gorbunov
0b5aedb0a2
Pack jvm builtins into kotlin-stdlib shipped with idea plugin
...
This lessens the possibility that kotlin plugin will get different
variants of builtins in the classpath, thus making builtins resources
loading less order-dependent.
2020-09-18 15:11:45 +03:00
Leonid Startsev
f2cf64aec7
Create plugin context before launching actual psi2ir process.
...
Because IrPluginContextImpl constructor creates new instance of
BuiltinSymbolsBase (with symbols for stdlib declarations like `arrayOf` etc),
there should be at least one pass of `declareUnboundSymbolsAsDependencies`
between creation and usage in plugin. Such pass is located between psi2ir
and compiler plugins application. If plugin context is created inside lambda,
right before plugins are applied, the symbols will remain unbound.
#KT-41764 Fixed
2020-09-18 14:58:38 +03:00
Dmitry Petrov
ee3ada4e55
JVM_IR KT-40304 KT-41998 special handling for 'removeAt'
2020-09-18 14:27:36 +03:00
Kirill Shmakov
9008944860
Use target of the test in rerun dialog
...
This is to fix #KT-37799
2020-09-18 13:15:41 +03:00
Ilmir Usmanov
b406022315
Mark Unit unspillable if it is merged with unspillable Unit
...
#KT-42004: Fixed
2020-09-17 23:23:14 +02:00
Alexander Udalov
f6e4705d9c
Regenerate KotlinSteppingTestGenerated
2020-09-17 22:16:47 +02:00
Mads Ager
a62ffbf992
[JVM_IR] Ignore fwBackingField stepping test.
...
The test relies on fixes not yet landed, so it currently fails.
2020-09-17 22:14:30 +02:00
Georgy Bronnikov
8343ca093c
IR: bugfix in wrapped, IR-based descriptors
2020-09-17 19:16:03 +03:00
Georgy Bronnikov
c2bdedfbae
JVM_IR: remove descriptor usage from JvmSignatureClashDetector
2020-09-17 19:16:03 +03:00
Georgy Bronnikov
c7f10c272a
JVM_IR: remove .toKotlinType() from PromisedValue
2020-09-17 19:16:03 +03:00
Georgy Bronnikov
7c5e255fa3
JVM_IR: remove .toKotlinType() from IrInlineIntrinsicsSupport
2020-09-17 19:16:03 +03:00
Georgy Bronnikov
991a832d8c
JVM_IR: remove KotlinType reference from jvm/ir/IrUtils.kt
2020-09-17 19:16:03 +03:00
Georgy Bronnikov
3c0fbd5f45
IR: remove .toKotlinType() usage from coerceToUnit calls in lowerings
2020-09-17 19:16:03 +03:00
Dmitry Savvinov
6a55475392
Dont show warning for KT-21515 with LV>=1.3
2020-09-17 18:33:19 +03:00
Dmitriy Novozhilov
57ceb0fa20
[FIR] Don't create call to this in generated provideDelegate for top-level extension properies
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
a666eee67b
[FIR] Properly deserialize annotations on typealias and underlying type
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
748049daa3
[FIR] Don't call inline lambda twice in withFullBodyResolve
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
f9de2621b2
[FIR] Minor, fix TODO in constantValues
...
KT-8507
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
535de7bdc8
[FIR] Cleanup code of FirTypeDeserializer.kt
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
8deab3559e
[FIR] Get rid of FirDeserializationComponents
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
d4cc98fab1
[FIR] Safe VersionRequirementTable in deserialized declarations
2020-09-17 17:23:26 +03:00
Dmitriy Novozhilov
7c5160a968
[FIR] Remove meaningless TODO's
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
73c8059884
[FIR] Properly deserialize arrays in annotation arguments
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
ae819ff059
[FIR] Add configurable typeRef to FirArrayOfCallBuilder
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
d4891cb464
[FIR] Move Jsr305State from FirSession to separate component
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
93d63f7c66
[FIR] Get rid of FirResolvedFunctionTypeRef
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
edab50ac61
[FIR] Get rid of FirResolvedTypeRef.isSuspend
2020-09-17 17:23:25 +03:00
Dmitriy Novozhilov
6c5cf8eda3
[FIR] Cleanup code in body resolve
2020-09-17 17:23:24 +03:00
Dmitriy Novozhilov
d4038f35b6
[FIR] Make BodyResolveComponents an abstract class
2020-09-17 17:23:24 +03:00
Ilmir Usmanov
dfd7f33bd3
Minor. Add test with reified type parameter
2020-09-17 16:14:07 +02:00