Nikolay Lunyak
f644eb7988
[FIR JS] Implement FirJsExportDeclarationChecker
2023-03-29 08:51:48 +03:00
Nikolay Lunyak
624162dc07
[FIR JS] Report NESTED_JS_EXPORT
2023-03-29 08:51:48 +03:00
Nikolay Lunyak
8f94899187
[FIR JS] Fix a typo in the dynamic upper bound check
...
`FirDynamicTypeRef` is the unresolved version, and after resolution it
becomes `FirResolvedTypeRef` with `ConeDynamicType`.
2023-03-29 08:51:48 +03:00
Nikolay Lunyak
2b5d2dc539
[FIR JS] Report rtti-related diagnostics
2023-03-29 08:51:48 +03:00
Vladimir Sukharev
351588f0a7
[K2/N] Enable some fixed MPP tests
...
Merge-request: KT-MR-9364
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-28 16:49:57 +00:00
Dmitriy Novozhilov
0149ac3dbd
Advance bootstrap to 1.9.0-dev-4392
2023-03-28 19:42:13 +03:00
Kirill Rakhman
32cc28c6cf
[FIR] Skip expect-actual rules check when overriding non-expect member
...
Overriding equals, hashCode, toString and any other member that is not
expect does not require satisfying the rules of expect-actual matching.
#KT-57381 Fixed
2023-03-28 16:21:33 +00:00
Dmitriy Novozhilov
ef51cf9083
[AA] Ignore tests due to KT-57619
2023-03-28 15:35:12 +00:00
Dmitriy Novozhilov
e02194b461
[FIR] Properly prohibit access to enum companion in enum entry initialization section
...
^KT-57456 Fixed
KT-57608
2023-03-28 15:35:12 +00:00
Dmitriy Novozhilov
cbfa155333
[FIR] Make FirClass an inheritor of FirControlFlowGraphOwner
...
Both inheritors of FirClass (FirRegularClass and FirAnonymousObject)
already were CFG owners
2023-03-28 15:35:11 +00:00
Dmitriy Novozhilov
a9c1091140
[Test] Add test for KT-57456
2023-03-28 15:35:11 +00:00
Ilya Goncharov
95d33da10d
[Gradle, JS] Watch options ignore kt file to not trigger webpack
...
[Gradle, JS] Webpack prod dist not in default dist dir
^KT-57629 fixed
^KT-57630 fixed
2023-03-28 14:39:10 +00:00
Ilya Goncharov
4fabe8b29a
[Gradle, JS] Fix composite build to not depend package json task on full aggregated configuration
...
^KT-57604 fixed
2023-03-28 13:37:23 +00:00
Kirill Rakhman
1f0d56e157
[FIR] Make type parameters inaccessible for non-inner nested types
...
#KT-57209
2023-03-28 13:20:53 +00:00
Kirill Rakhman
c39ab956a0
[FIR2IR] Fix redundant let in Fir2IrDeclarationStorage
2023-03-28 12:47:42 +00:00
Kirill Rakhman
ee78c31174
[FIR2IR] Fix generation of Any method call on expect receiver
...
#KT-57583 Fixed
2023-03-28 12:47:42 +00:00
Kirill Rakhman
ed99f8bcdd
[FIR2IR] Remove redundant toMutableList
2023-03-28 12:47:41 +00:00
Artem Kobzar
c6e4858bc9
[K/JS] Remove the ability to run Legacy JS backend from the Gradle Plugin
2023-03-28 12:47:04 +00:00
Simon Ogorodnik
ae32eff543
KT-57154: Fix JRT-FS contents served for wrong JDK home on JDK 9+
...
If the compiler runtime JDK is 9+,
it will already contain JrtFileSystemProvider and won't use provided
classloader
In order to fix KT-57154 we need to provide "java.home" argument to
newFileSystem
In order to reduce the severity of the leak in KT-56789 we cache
instances of FileSystem itself forever
Otherwise, each invocation of newFileSystem on JDK 9+ will leak
classloader, which is created deep inside the JDK code
Add unit test for JRT-FS contents served through CoreJrtFs
Add Gradle Integration test to
test if the daemon correctly reads JDK contents from the specified
toolchain and not from its runtime JDK
^KT-57154
Regression test for ^KT-57077
2023-03-28 10:38:46 +00:00
Mikhail Glukhikh
563781a246
K2: serialize data class equals / hashCode / toString functions
...
#KT-57510 Fixed
2023-03-28 09:30:02 +00:00
Dmitriy Dolovov
0a38b29491
[PL] Drop useless KotlinIrLinkerInternalException
...
It only added a confusion, while in fact has no practical sense.
2023-03-28 08:50:59 +00:00
Dmitriy Dolovov
850879375a
[PL] Special handling of function references produced by FIR
2023-03-28 08:50:59 +00:00
Pavel Mikhailovskii
85b5a4521e
KT-56843 [SLC] Support unsafe property initializers
2023-03-28 08:17:37 +00:00
Artem Kobzar
6b62499c85
[K/JS] Add previousOffset to InteropCallableReferenceLowering + include SYNTHETIC_OFFSET branch into previousOffset calculation
2023-03-27 21:45:00 +00:00
Vladimir Sukharev
9df5c54db3
[K2/N] KT-55828: Enable fixed tests
...
Merge-request: KT-MR-9246
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-27 17:25:54 +00:00
Mikhail Glukhikh
8b247982e3
Fix text/description of FirIncompatiblePluginAPI
2023-03-27 14:00:52 +00:00
Dmitriy Dolovov
7382b31fdc
[PL] Native: Remove harmful private visibility guard in deserialization of LazyIr
...
Kotlin/Native codegen needs to deserialize all fields throughout the class hierarchy to build the proper binary class layout. That becomes impossible with the guard condition that prevents loading private top-level classes from another module in LazyIR (see https://github.com/JetBrains/kotlin/blob/2a4d8800374578c1aa9ec9c996b393a98f5a6e3b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/serialization/KonanIrlinker.kt#L701 ). The guard suits well for the partial linkage needs, but it causes the codegen to fail with `Unbound public symbol IrClassPublicSymbolImpl: [ File '/file/in/the/library.kt' <- private.top.level/ClassDeclaration|null[0] ]` error.
To prevent this the guard is removed. This does not influence the partial linkage in general except for the different error message being generated: `Function 'foo' can not be called: Private function declared in module <A> can not be accessed in module <B>` instead of `Function 'foo' can not be called: No function found for symbol '<symbol>'`.
#KT-54469
2023-03-27 15:50:13 +02:00
Mikhail Zarechenskiy
681e85eaed
Don't report unused variable warning for delegated variables with provide delegate
...
^KT-38871 Fixed
2023-03-27 13:46:13 +00:00
Bogdan Mukvich
18cfc9fcf1
Add space Safe-Merge feature config
...
KTI-1108
2023-03-27 15:43:47 +02:00
Vladimir Sukharev
b375307aa6
KT-57349: Disable target-wide tests for K1/Native
...
Merge-request: KT-MR-9353
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-27 13:32:18 +00:00
Vladimir Sukharev
9212464887
Enable tests fixed by KT-56023
...
Merge-request: KT-MR-9350
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-27 13:21:20 +00:00
Kirill Rakhman
56da3c2ee2
[FIR] Bring conflicting overloads errors closer to K1 behavior
...
#KT-55860 Fixed
2023-03-27 11:56:16 +00:00
Abduqodiri Qurbonzoda
9dd778bc89
[K/N] Deprecate initRuntimeIfNeeded() with WARNING
...
As a part of stabilizing Native stdlib.
2023-03-27 14:52:26 +03:00
Abduqodiri Qurbonzoda
33053405e0
[K/N] Mark Any?.identityHashCode() as experimental
...
As part of stabilizing Native stdlib.
2023-03-27 14:51:39 +03:00
mcpiroman
25bcd86552
Simplify and optimize BridgeLowering
2023-03-27 13:49:07 +02:00
Abduqodiri Qurbonzoda
0d53e11851
[K/N] Internalize all annotations in kotlin.native.internal package
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-03-27 11:47:25 +00:00
Dmitriy Novozhilov
62ad784b73
[FIR] Fix matching annotated predicate for java and binary declarations
...
^KT-57400 Fixed
2023-03-27 10:54:27 +00:00
Dmitriy Novozhilov
1ac7d13c96
[FE] Add regression test for KT-57036
2023-03-27 10:54:27 +00:00
Alexander Udalov
e56e058b7b
JVM IR: replace unoverridden Number.toChar with toInt().toChar()
...
This fixes failing tests for JVM_IR in
`box/primitiveTypes/numberToChar`.
#KT-23447 Fixed
#KT-46465
2023-03-27 10:46:15 +00:00
Alexander Udalov
a962ec4553
Rework tests on Number.toChar with custom Number subclass
...
Simplify them, move to a subfolder, add a couple of new tests.
2023-03-27 10:46:15 +00:00
Dmitriy Novozhilov
a64d8e8a31
[Stdlib] Deprecate and make open Number.toChar()
...
^KT-46465 Fixed
2023-03-27 10:46:13 +00:00
Dmitriy Novozhilov
90ec84d7b7
[Stdlib] Update copyrighting in generated stdlib sources
2023-03-27 10:46:11 +00:00
Dmitriy Novozhilov
336b6ba9f0
[FIR] Extract extension functional type from an annotated functional type during deserialization
...
^KT-57140 Fixed
2023-03-27 10:44:51 +00:00
Dmitriy Novozhilov
8ca7b32577
[FIR] Register type related extensions in libraries sessions
...
^KT-57140
2023-03-27 10:44:50 +00:00
Dmitriy Novozhilov
01fc84ee3a
[FIR] Add tests for plugins compatibility
...
^KT-57140
2023-03-27 10:44:50 +00:00
Dmitriy Novozhilov
a705bfe2cd
[Test] Add regression test for KT-57477
2023-03-27 10:44:50 +00:00
Marco Pennekamp
f9785c1050
[LL FIR] KT-57455 Avoid creating optional annotation class providers
...
- An `OptionalAnnotationClassesProvider` only needs to be created if the
package part provider may even have optional annotation classes.
- In the IDE case, the package part provider never provides optional
annotation classes, so especially in the IDE, we can avoid a lot of
useless symbol providers with this.
2023-03-27 10:38:50 +00:00
Alexander Udalov
d3be38476a
Merge K2 box tests to main box tests
2023-03-27 10:32:19 +00:00
Alexander Udalov
14c2030595
Merge K2 bytecodeListing tests to main bytecodeListing tests
2023-03-27 10:32:17 +00:00
Ilya Goncharov
68dd89c593
[Gradle, JS] Fix binaryen registering tasks
...
^KT-57203 fixed
2023-03-27 09:32:09 +00:00