Vladimir Sukharev
be9805ea5e
[K2/N][Tests] Add test to demonstrate compiler behavior for ObjC properties intersection overrides
...
^KT-57640
2024-01-16 13:40:51 +00:00
Pavel Kunyavskiy
e6fd523431
[IrFakeOverrideBuilder] Consolidate visibility handling
...
Now fake overrides declarations invisible for override
are totally ignored by FakeOverrideBuilder, instead of
creating fake overrides for them, and than filtering them
out later.
As side-effect it fixes KT-64972.
^KT-64974
2024-01-16 13:35:16 +00:00
Yahor Berdnikau
104e6a9b7c
[Gradle] Suppress documentation for warnNpmGenerateExternals
...
^KT-58858 In Progress
2024-01-16 12:36:29 +00:00
Vladimir Sukharev
5f51f5e1fc
[K/N] Migrate more cinterop tests
...
^KT-61259
2024-01-16 11:58:31 +00:00
Ivan Kylchik
8ed7e31b5f
[JVM] Validate lowered JVM IR only if it was explicitly requested
...
This is an addition to the f5bb477459
commit. Earlier, some of the validation checks were moved from
`stickyPostconditions` into separate lowering. But these
post-conditions checks were launched only when several flags were
set to true. In this commit, we just return to such behavior.
#KT-64116
2024-01-16 11:18:21 +00:00
Artem Kobzar
a55c65e3e2
[K/Wasm] Add simple TypeScript definitions generating ^KT-65009 Fixed
2024-01-16 11:10:27 +00:00
Artem Olkov
baa0748375
KT-64932: add support for no-package top level functions
...
Merge-request: KT-MR-13879
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2024-01-16 10:58:51 +00:00
Ivan Kylchik
672c945895
[K2] Add test to check deprecation reporting from java static method
...
#KT-57785 Can't Reproduce
2024-01-16 10:56:31 +00:00
Dmitry Savvinov
8236fc245b
[gradle, mpp] Clean-up dead code around metadata klib manifest handling
...
See the added source comment for details. This commit shouldn't change
any behavior of KGP
^KT-64525
2024-01-16 10:53:37 +00:00
Ivan Kylchik
5c28e63608
[K2] Forbid to do equality check with null in constant expressions
2024-01-16 09:57:53 +00:00
Ivan Kylchik
8cd9479f20
[K2] Report NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION when it is appropriate
2024-01-16 09:57:53 +00:00
Ivan Kylchik
0d127f6daf
[K2] Properly check if binary logical expression is constant
2024-01-16 09:57:53 +00:00
Ivan Kylchik
f8e9e99d87
[K2] Allow using simple boolean expressions in constant position
...
Such behavior is not the same as in K1, but it is more consistent.
#KT-64400 Fixed
2024-01-16 09:57:52 +00:00
Vladimir Sukharev
38ea2ce973
[K/N] Don't use assert in production code
2024-01-16 09:39:16 +00:00
Vladimir Sukharev
07938205bc
[FIR][K/N] Get rid of SymbolInternals in FirObjCInterop
2024-01-16 09:39:16 +00:00
Vladimir Sukharev
37e9062fcc
[FIR] Rename FirCallableDeclaration.getOverriddenSymbols() to getDirectOverriddenSymbols()
2024-01-16 09:39:16 +00:00
Vladimir Sukharev
e109cac719
[FIR][K/N] Reduce use FIR internals usage in FirObjCInterop
...
^KT-61564
2024-01-16 09:39:15 +00:00
Vladimir Sukharev
55a41961d3
[FIR][K/N] Don't use FIR internals in FirNativeObjCOverrideInitChecker
...
^KT-61564
2024-01-16 09:39:15 +00:00
Sergej Jaskiewicz
ad9f7bf90e
[IR] Don't use the GET_PROPERTY origin on IrGetField expressions.
...
This origin was set somewhat arbitrarily.
It actually only makes sense for `IrCall`s to property getters.
There were no places in lowerings that checked `IrGetField` expressions
for this origin value.
^KT-62500 Fixed
2024-01-16 09:26:27 +00:00
Dmitriy Novozhilov
f9ea353b60
[Native] Don't group K2 MPP tests in Native codegen tests
...
K2 in MPP compilation expects that it receives module structure
with exactly one platform leaf module. This invariant may be broken
during grouping tests, so MPP tests should be run in standalone mode
2024-01-16 09:01:32 +00:00
Dmitriy Novozhilov
1434d26d1b
[Native] Minor. Slightly refactor FirNativeSerializer.kt
2024-01-16 09:01:32 +00:00
Dmitriy Novozhilov
3aa84906c2
[Native] Use proper session for fir metadata serialization
...
^KT-64743 Fixed
2024-01-16 09:01:32 +00:00
Kirill Rakhman
8c04206709
Revert "[FIR] Let attributes opt-in to participating in ConeClassLikeTypeImpl structural equality"
...
This reverts commit 9189154cae .
2024-01-16 09:14:22 +01:00
Kirill Rakhman
121536d2e5
Revert "[FIR] Don't lose error level enhancements in warning-level-enhanced arguments"
...
This reverts commit 371b1eb3d5 .
2024-01-16 09:14:21 +01:00
Kirill Rakhman
cf0824f3ef
Revert "[FIR] Fix parameter order of NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS"
...
This reverts commit 8bfc4675c4 .
2024-01-16 09:14:20 +01:00
Kirill Rakhman
fa6ad41395
Revert "[FE 1.0] Fix new compilation warnings after #KT-63208"
...
This reverts commit dc0f4e6995 .
2024-01-16 09:14:19 +01:00
Kirill Rakhman
77f83ce816
Revert "[kapt] Fix new compilation warnings after #KT-63208"
...
This reverts commit 9b4ebc31c1 .
2024-01-16 09:14:18 +01:00
Kirill Rakhman
9fa889ed61
Revert "[FIR] Make EnhancedTypeForWarningAttribute a data class"
...
This reverts commit 76898ddb0f .
2024-01-16 09:14:18 +01:00
Iaroslav Postovalov
29c68c8aa7
[Tests] Add JavaAgainstKotlin tests for K2
...
^KT-64405 Fixed
2024-01-15 23:25:47 +00:00
Mikhail Glukhikh
34877130c7
Refactor callableId around pathToLocal and classId properties
...
#KT-58739 Fixed
2024-01-15 18:46:51 +00:00
Ivan Kylchik
71f2a2df8e
[Tests] Drop JVM_WITH_OLD_EVALUATOR and JVM_WITH_IR_EVALUATOR targets
...
These targets were used in plugin, but not anymore.
2024-01-15 17:30:57 +00:00
Sergej Jaskiewicz
2e6b7a3856
[atomicfu] Don't create Volatile's constructor for each call site
...
^KT-64971 Fixed
2024-01-15 17:28:22 +00:00
Alexander Popoff
ddd71851cf
MPP / KJS: Fix incorrect source maps generating for ESM target
...
(cherry picked from commit 0553a2bf12b35f33f30c6400ab3af14341877946)
2024-01-15 16:03:26 +00:00
Anastasia.Nekrasova
ad9025afa6
[k1/K2]: Mark @SubclassOptInRequired as an experimental
...
At the moment, SubclassOptInRequired is marked with the
ExperimentalSubclassOptIn annotation. However, it does not work
as expected due to a missing opt-in error. To use SubclassOptInRequired,
an explicit opt-in is necessary because SubclassOptInRequired is an
unstable feature now.
^KT-64739
2024-01-15 14:54:36 +00:00
Pavel Kunyavskiy
882dc18e0e
[IrActualizer] Don't copy attributeOwnerId in actualizer
...
In before, actualizer was copying attributeOwnerId to new
nodes. This leads to attributeOwnerId linked to non-actualized
node. It's unclear what it leads to, so we just stop doing that.
In particular, if attributeOwnerId references another node,
this information would be lost.
^KT-64895
2024-01-15 14:10:35 +00:00
Sergej Jaskiewicz
e49b28d639
[FIR] Disable linkViaSignatures in K2 irText tests for non-JVM targets
...
This will make the test compiler configuration closer to the production
configuration.
KT-64809
2024-01-15 13:13:55 +00:00
Sergej Jaskiewicz
a5031edd1a
Verify mangled names against descriptions of signatures computed from IR
...
...instead of those computed from a frontend representation
(`symbol.signature`).
This is more robust; besides, we are going to turn off building
signatures from FIR, so `symbol.signature` is going to return null soon.
2024-01-15 13:13:55 +00:00
Sergej Jaskiewicz
c8f8316e9b
[klib] Return the block's return value in inFile methods
2024-01-15 13:13:55 +00:00
Sergej Jaskiewicz
da9f0e7af8
[test] Get rid of SKIP_SIGNATURE_DUMP directive in irText tests
...
Sometimes there are legitimate reasons to have two separate signature
dumps for K1 and K2.
^KT-61797 Fixed
2024-01-15 13:10:19 +00:00
Alexander Shabalin
d2cf4548f6
[K/N] Fix ExtraObjectData not being collected ^KT-63423
2024-01-15 13:04:37 +00:00
Kirill Rakhman
76898ddb0f
[FIR] Make EnhancedTypeForWarningAttribute a data class
2024-01-15 12:23:27 +00:00
Kirill Rakhman
9b4ebc31c1
[kapt] Fix new compilation warnings after #KT-63208
2024-01-15 12:23:27 +00:00
Kirill Rakhman
dc0f4e6995
[FE 1.0] Fix new compilation warnings after #KT-63208
2024-01-15 12:23:26 +00:00
Kirill Rakhman
8bfc4675c4
[FIR] Fix parameter order of NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS
2024-01-15 12:23:26 +00:00
Kirill Rakhman
371b1eb3d5
[FIR] Don't lose error level enhancements in warning-level-enhanced arguments
...
The error-level enhancement is kept as warning-level and a new
LanguageFeature is introduced to turn the warning into an error.
#KT-63208 Fixed
#KT-63209
2024-01-15 12:23:26 +00:00
Kirill Rakhman
9189154cae
[FIR] Let attributes opt-in to participating in ConeClassLikeTypeImpl structural equality
...
This is required for EnhancedTypeForWarningAttribute because scopes
should not be reused between cone types with different values of
this attribute.
#KT-63208
2024-01-15 12:23:26 +00:00
Igor Yakovlev
931cc48def
[Wasm/WASI] Implementation of a callback on root exported function exit
...
Fixed #KT-64486
2024-01-15 11:37:37 +00:00
Sergey Bogolepov
d3864c841a
[Native][tests] Adapt to OutputDataFile constructor changes
2024-01-15 11:18:28 +00:00
Sergey Bogolepov
b8c1da7d1f
[Native][Tests] Disable static library tests of MinGW
2024-01-15 11:18:28 +00:00
Sergey Bogolepov
85490f9201
[Native][Tests]Update executable location in AbstractNativeCExportTest
...
Changed the code in AbstractNativeCExportTest to create the executable
in the same directory as the dynamic library.
This update is to accommodate the lack of rpath on Windows systems.
2024-01-15 11:18:28 +00:00