Igor Yakovlev
780fdd44b3
Revert "[WASM] Remove deprecated usage of externref"
...
This reverts commit 270a41a2db .
2022-09-15 16:27:42 +00:00
Igor Yakovlev
61d6f69bca
[WASM] Native support of returnable blocks
2022-09-15 16:27:41 +00:00
Igor Yakovlev
03c500d9e9
[WASM] Remove unreachable code from compiled wasm
2022-09-15 16:27:41 +00:00
Igor Yakovlev
5169d96acd
[WASM] Function call codegen refactoring
2022-09-15 16:27:40 +00:00
Igor Yakovlev
95396eb61a
[WASM] When expressions optimisations for String and Int constant cases
2022-09-15 16:27:39 +00:00
Ilya Gorbunov
e51d25fb60
Fix test data: use also stdlib where stdlib-jdk8 was required
...
#KT-51907
2022-09-15 15:38:32 +00:00
Dmitriy Novozhilov
06f3c0567b
[LC Test] Fix IDE testdata
2022-09-15 17:27:23 +03:00
Dmitriy Novozhilov
c5916e1d1f
[AA LC] Fix computation of const initializers of fields
2022-09-15 17:27:23 +03:00
Dmitriy Novozhilov
573b292cbc
[AA LC] Make top-level functions static final
2022-09-15 17:27:23 +03:00
Dmitriy Novozhilov
7e24ddeb40
[AA LC] Properly compute retention for @java.lang.annotation.Retention
2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov
77546e5e06
[AA LC] Compute nullability annotation for parameter for extension receiver
2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov
c67ded2d3b
[AA LC] Properly set type mapping mode for bounds of type parameters
2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov
a3884e35e2
[AA LC] Fix type parameters for getters of generic extension properties
2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov
e6092e2dff
[AA LC] Generate nullability annotations for properties in enums
2022-09-15 17:27:22 +03:00
Dmitriy Novozhilov
b7712a35f0
[AA LC] Generate backing field for inline classes
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
8e80c5830e
[AA LC] Fix annotations on fields for enum entries
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
a88fdd5eb7
[AA LC] Implement default values for methods of annotations
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
3a51a8a655
[AA LC] Fix computing visibility for classes
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
ab2aa3117b
[AA LC] Add @java.lang.Override on override functions
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
258e3f9225
[AA LC] Fix visibility of fields for const vals
2022-09-15 17:27:20 +03:00
Dmitriy Novozhilov
1ff51356b9
[AA LC] Fix visibility of fields from companion objects
...
^KTIJ-22541
2022-09-15 17:27:20 +03:00
Dmitriy Novozhilov
c34f952126
[Test] Render annotations on enum entries in PSI class renderer
2022-09-15 17:27:20 +03:00
Dmitriy Novozhilov
7ef81c27df
[AA] Make KotlinReferenceProvidersService and KotlinReferenceProviderContributor a project services
...
There is no need to have those services on application level
2022-09-15 17:27:20 +03:00
Aleksei.Cherepanov
782dc55800
Make exception more user-friendly (2)
...
Add stacktrace and given error to error message
#KTIJ-21077 Fixed
Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com >
Merge-request: KT-MR-7122
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com >
2022-09-15 13:33:11 +00:00
Alexander Korepanov
09add47777
[JS IR] Trigger klib rebuild after removing a dependency
...
^KT-50503 Fixed
2022-09-15 10:56:41 +00:00
Vladimir Dolzhenko
298494fa08
Drop KtStubElementTypes.FILE
...
FILE elements are always registered eagerly on parser definition load
and should not be mentioned in stubElementTypeHolder interfaces.
KtFileElementType.INSTANCE was defined in 2 places, first as
getFileNodeType of KotlinParserDefinition and second is
KtStubElementTypes. In order to ensure that there are no conflicts
in stubs the platform needs to recheck these 2 declarations,
and it triggers loading of KtStubElementTypes fields. We do not need
to declare FILE element in KtStubElementTypes and may just remove this
declaration as excessive. This will delay init of KtStubElementTypes
to the moment when Kotlin files appear in indexes.
#KT-53781
2022-09-15 10:35:05 +00:00
Vladimir Dolzhenko
584eb9dfa9
Move TokenSet from KtStubElementTypes
...
KtStubElementTypes has to have only KtStubElementType fields to provide
ability to initialize stub element types lazily.
#KT-53781
2022-09-15 10:35:04 +00:00
Pavel Mikhailovskii
f643cdf90b
Target KT-4107 (data objects) to Kotlin 1.9
2022-09-15 12:23:40 +02:00
Shumaf Lovpache
194dae11b9
Fix name for EXPECT_ACTUAL_LINKER key
...
Fix typo in key name
2022-09-15 11:06:32 +02:00
Mikhail Glukhikh
fb9b1ad0dc
K1: implement warning for upper bound violated in type alias constructors
...
Partially implements KT-47473
2022-09-15 08:51:46 +00:00
Mikhail Glukhikh
b314672130
Fix typo (FirUpperBoundViolatedExpressionChecker)
2022-09-15 08:51:46 +00:00
Mikhail Glukhikh
8c475750b1
FE: add test for KT-47473
2022-09-15 08:51:45 +00:00
Alexander Udalov
b158ece232
Tweak module exclusion filter for -Xjvm-default=all
...
- Remove obsolete exclusion of core & stdlib modules, since they are now
compiled with JVM target 1.8, but leave `:core:descriptors` because of
an issue in Proguard.
- Remove binary-compatibility-validator and update test data instead.
- Replace some "contains" checks with equality for clarity.
- Remove modules from -Werror filter which no longer use the deprecated
compatibility mode.
2022-09-14 14:40:39 +02:00
Mikhael Bogdanov
c168a19a58
Build compiler with -Xjvm-default=all + @JvmDefaultCompatibility when needed
2022-09-14 14:40:37 +02:00
Aleksei.Cherepanov
0d1b748cd5
Make exception more user-friendly
...
Accompany registration of non-compatible compiler plugin with readable error
#KTIJ-21077 Fixed
2022-09-14 10:30:42 +00:00
Mikhail Glukhikh
036f9affd8
K2: link via signatures if -Xlink-via-signatures is set
...
Related to KT-53505
2022-09-14 10:15:22 +00:00
pyos
a0fa2cc275
FIR: regenerate LL API tests
2022-09-14 08:11:05 +00:00
pyos
be5c4a91a4
FIR/FE1.0: keep flexibility when approximating local types
2022-09-14 08:11:04 +00:00
pyos
adcbc5ec99
FE1.0: keep nullability when approximating local types (in 1.9)
...
Report an error that inference will change and type has to be provided
manually in other language versions, since the current behavior is an
unsoundness that can cause runtime NPEs while the new behavior may
silently change overload resolution.
^KT-30054 Fixed
2022-09-14 08:11:04 +00:00
pyos
062308c7c1
FIR: keep nullability when approximating local types
...
^KT-30054 Open
2022-09-14 08:11:04 +00:00
Dmitriy Dolovov
e4556ecc0d
[IR] User-friendly message about unexpected unlinked symbols
...
^KT-53649
2022-09-13 17:12:13 +00:00
Ivan Kochurkin
6c4dafc23c
Disable IgnoreNullabilityForErasedValueParameters for indefinite time, ^KT-53751 Fixed
2022-09-13 16:45:06 +00:00
Abduqodiri Qurbonzoda
4e1cb12024
Remove deprecated Experimental and UseExperimental annotation classes #KT-53864
2022-09-13 17:19:01 +03:00
Simon Ogorodnik
95c1892ef1
K1. Fix error message for BUILDER_INFERENCE_MULTI_LAMBDA_RESTRICTION
2022-09-13 13:01:58 +00:00
Andrey Uskov
d223dafc45
Don't wrap ProcessCanceledException with other exceptions
...
ProcessCanceledException indicates that the compilation process was
terminated by user. This kind of exception should not be wrapped anyhow
in order to be handled on toplevel in CLICompiler.
#KT-38483 Fixed
2022-09-13 10:32:49 +00:00
Mikhail Glukhikh
5fcb18ac2b
Revert "[FE 1.0] Resolve this and super calls through the new type inference infra"
...
This reverts commit bab8047bb3 .
2022-09-13 09:09:01 +00:00
Mikhail Glukhikh
f35cebbc25
Revert "[FE 1.0] Resolve special construct calls through the new type inference infra"
...
This reverts commit e66cc9a639 .
2022-09-13 09:09:01 +00:00
Mikhail Glukhikh
fc0058d471
Revert "[FE 1.0] Resolve constructor calls through the new type inference infra"
...
This reverts commit 0070c234ce .
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh
c699896b0f
Revert "[FE 1.0] Resolve collection literals through the new type inference infra"
...
This reverts commit a542de715a .
2022-09-13 09:09:00 +00:00
Mikhail Glukhikh
707bfbed19
Revert "[FE 1.0] Resolve equal calls through the new type inference infra"
...
This reverts commit a74c221729 .
2022-09-13 09:09:00 +00:00