Ilya Chernikov
0e77b67170
K2: implement correct check for ctors mapped from java
...
so the check is functionally the same as in K1.
#KT-57064 fixed
#KT-57065 fixed
One of the tests introduced here (javaMappedCtors) revealed an
additional issue, filed as KT-57368
2023-03-20 11:33:34 +00:00
nataliya.valtman
730502638a
Dont call GC for every task
2023-03-20 11:33:03 +00:00
Mikhail Glukhikh
a43a16b25b
Delay ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound to 2.0
...
#KT-57395 Fixed
Related to KT-47986
2023-03-20 11:11:41 +00:00
Vladimir Sukharev
5ef62c8760
[K2/N] Replace K2 prefixes for test classes with Fir
...
Merge-request: KT-MR-9248
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-20 10:55:57 +00:00
Vsevolod Tolstopyatov
33d13474c5
Make EnumEntries implementation eager
...
* Addresses the recent design changes of the corresponding language feature
* Also rework JS/Wasm enumEntries implementation with the function that accepts array instead of fabric function
^KT-57318
Co-authored-by: Artem Kobzar <Artem.Kobzar@jetbrains.com >
Merge-request: KT-MR-9204
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-03-20 10:18:28 +00:00
Artem Kobzar
7a79de6d16
[K/JS] Move JS IR box tests setup into separated function
2023-03-19 22:53:05 +00:00
Dmitriy Novozhilov
d3200b2c65
Fix line breaks in utility script for bootstrap update
2023-03-18 00:45:32 +02:00
Dmitriy Novozhilov
7a25e885b1
Advance bootstrap to 1.9.0-dev-3768
2023-03-18 00:44:36 +02:00
Dmitriy Novozhilov
16a46fbc0b
[FIR] Reformat RawFirBuilder.kt
2023-03-17 18:51:48 +00:00
Dmitriy Novozhilov
16872f7a74
[FIR] Create this reference for getValue calls in delegates with proper type
...
^KT-57288 Fixed
2023-03-17 18:51:47 +00:00
Denis.Zharkov
823c60a7dc
K2: Fix false-positive UNSAFE_CALL on safe call with flexible type alias
...
The idea of the fix is just unwrapping flexible version of type alias,
before creating a not-nullable version for safe-call subject.
Otherwise, it was remained to be JsExpressionResult after applying
makeConeTypeDefinitelyNotNullOrNotNull (and the type is still nullable)
^KT-57190 Fixed
2023-03-17 16:27:29 +00:00
Yan Zhulanow
bf977d4262
[LL API] Don't invalidate 'LLFirResolvableResolveSession' on OOBs
2023-03-17 15:27:06 +00:00
Mikhail Glukhikh
e8232a7572
FE: add one more test related to KT-56511 with the relevant feature ON
2023-03-17 14:57:41 +00:00
Mikhail Glukhikh
41c868445c
K1: introduce smartcast deprecation for a public API property in invisible class
...
#KT-56511 Fixed
Related to KT-57290
2023-03-17 14:57:40 +00:00
Mikhail Glukhikh
0b31e5ad63
K2: reproduce & add test for KT-56511
2023-03-17 14:57:40 +00:00
Artem Daugel-Dauge
e75fac271d
[Gradle] Fix red CocoaPods tests which were hidden by an installation issue
2023-03-17 14:19:13 +00:00
Artem Daugel-Dauge
df3ec232b2
[Gradle] Explicitly specify CocoaPods version in tests
2023-03-17 14:19:13 +00:00
Sergej Jaskiewicz
de7de7b287
[IR] Add kdoc for IrElement
2023-03-17 13:55:13 +00:00
Sergej Jaskiewicz
ba5ff7967c
[IR] Don't use @sample in generated kdocs
...
`@sample` is used for showing usage examples, not the generation
template.
IDEA shows the body of the method referenced in `@sample` in
the class's kdoc, which pollutes the docs with irrelevant code.
2023-03-17 13:55:13 +00:00
Sergej Jaskiewicz
f96ff6d52d
[IR] Add a kdoc for IrMetadataSourceOwner
2023-03-17 13:55:12 +00:00
Sergej Jaskiewicz
396451b5da
[IR] Support specifying kdocs for properties in IR tree generator
2023-03-17 13:55:12 +00:00
Sergej Jaskiewicz
b3e5612f79
[IR] Unescape identifiers in tree generator more accurately
...
Simply removing all backticks makes kdocs with code blocks ugly
2023-03-17 13:55:12 +00:00
Vladimir Sukharev
c3cfe7ddf7
Revert "Replace K2 prefixes in test files to Fir"
...
This reverts commit f1c673c166 .
2023-03-17 14:33:01 +01:00
Kirill Rakhman
9b89759755
[FIR] Explicitly resolve synthetic property return type if necessary
...
During implicit body resolve phase, we can encounter a reference to a
not yet resolved Kotlin class that inherits a synthetic property from a
Java class. In that case, resolve the return type in
FirSyntheticPropertiesScope.
#KT-57166 Fixed
2023-03-17 13:31:45 +00:00
Kirill Rakhman
6aef11704b
[FIR2IR] Optimize imports in CallAndReferenceGenerator
2023-03-17 13:29:49 +00:00
Kirill Rakhman
7a6a3a0b1d
[FIR2IR] Fix generation of val initialization after smart-cast, again
...
#KT-57284
2023-03-17 13:29:48 +00:00
Vladimir Sukharev
f1c673c166
Replace K2 prefixes in test files to Fir
2023-03-17 14:26:32 +01:00
Artem Kobzar
4da81b2b6e
[K/JS] Remove an internal system property and replace it with the new compiler flag
2023-03-17 12:38:34 +00:00
Dmitriy Novozhilov
ca2492e1f8
[FIR2IR] Unwrap substitution overrides during generation of delegated members
...
^KT-55828 Fixed
2023-03-17 12:37:33 +00:00
Dmitriy Novozhilov
f44fcc811b
[FIR] Set proper callable id for delegated members
2023-03-17 12:37:31 +00:00
Mikhail Glukhikh
2fb79bf0b1
K1: don't report InferredIntoDeclaredUpperBound on non-physical element
...
#KT-56169 Fixed
2023-03-17 12:08:37 +00:00
Mikhail Glukhikh
980ab41ef1
FE: split one more test "buildList type argument is inferred into upper bound"
...
Related to KT-48445, KT-56169
2023-03-17 12:08:37 +00:00
Mikhail Glukhikh
97bec59bc9
K1: add forgotten INFERRED_INTO_DECLARED_UPPER_BOUNDS for incorporation case
...
#KT-56169 Fixed
2023-03-17 12:08:36 +00:00
Mikhail Glukhikh
ba2d896c01
FE: split test "buildList type argument is inferred into upper bound"
...
Related to KT-50520, KT-56169
2023-03-17 12:08:35 +00:00
Ilya Chernikov
8edf8573b5
Revert "[K2/N] adjust interop_objc_direct test for K2 because of ^KT-55902"
...
This reverts commit 8315eeaf92 .
2023-03-17 08:57:52 +00:00
Ilya Chernikov
0387ce0365
tmp: implement a hack to fix LA test
...
due to a missing mechanism to handle a case when LA succeeds while
codegen fails. See detailed comment in the source.
Fixes implicit conversion test introduced in the previous commit.
2023-03-17 08:57:52 +00:00
Ilya Chernikov
be2a85be71
K2: support implicit integer to unsigned conversions...
...
with dedicated opt-in language feature and special
annotation or module capability.
Not intended for a general use, solves specific K/N
scenario with interop libs.
#KT-55902 fixed
2023-03-17 08:57:51 +00:00
Denis.Zharkov
3e2f8b834c
K2: Replicate K1 enhancement behavior for warning-mode top-level types
...
^KT-56657 Fixed
^KT-57307 Related
2023-03-17 08:52:31 +00:00
aleksandrina-streltsova
f39d5d57e1
[AA] Fix processing of declared constructors in enhancement scope
...
^KTIJ-24948 Fixed
2023-03-17 07:27:53 +00:00
Mads Ager
46db4b4e6d
[K2] Ignore failing metadata tests while working on them.
2023-03-17 07:15:14 +00:00
Mads Ager
7b7da66d2b
[K2] Update JvmDefault compatibility metadata.
2023-03-17 07:15:13 +00:00
Mads Ager
683220a32c
[K1] Remove compiler version requirements for context receivers in metadata.
2023-03-17 07:15:13 +00:00
Mads Ager
ed84fbd8a6
Sort kotlinp output in tests to reduce diff between K1 and K2.
2023-03-17 07:15:13 +00:00
Mads Ager
e051751005
[K2] Use metadata method kind Delegation for delegated members.
2023-03-17 07:15:12 +00:00
Mads Ager
04a088039c
[K2] Add support for running Kotlinp tests with K2.
...
The tests fail spectacularly at this point in time.
2023-03-17 07:15:12 +00:00
Ilya Goncharov
f2ecb097f1
[Gradle, JS] Remove webpack 4 support
...
^KT-57387 fixed
2023-03-16 22:07:31 +00:00
Pavel Kunyavskiy
e655e0a809
[K/N] Fix default argument lambda in suspend function code generation
2023-03-16 21:14:41 +00:00
Ilya Goncharov
484d3ad273
[Gradle, JS] Upgrade npm dependencies
...
^KT-57386 fixed
2023-03-16 19:28:18 +00:00
Ilya Gorbunov
9a7468254d
Do not add duplicate content roots to kotlin-dom-api-compat during IDEA sync
...
Otherwise, stdlib-js source roots are not recognized in the IDE
2023-03-16 18:58:56 +00:00
Mikhail Glukhikh
0ecfcf4380
FIR2IR: make anonymous object constructor public to match K1 behavior
2023-03-16 18:07:36 +00:00