Mikhail Glukhikh
b12dffa593
Revert "[FE 1.0] Get rid of NewResolutionOldInference"
...
This reverts commit 34a05105ef .
2022-09-13 09:08:57 +00:00
Mikhail Glukhikh
e36091b926
K2: introduce even more readable renderer for types in messages
...
#KT-53343 Fixed
2022-09-13 09:05:48 +00:00
Mikhail Glukhikh
3848be596e
Add test for KT-53343
2022-09-13 09:05:48 +00:00
pyos
acce055fc4
FIR: fix incorrect handling of suspend function typealiases again
...
The previous attempt stopped this code from throwing an exception during
serialization, but the arity is still wrong so an exception is now throw
when reading the serialized type.
^KT-50997 Fixed
2022-09-12 17:45:40 +02:00
Mikhail Glukhikh
3a60e2cde5
K1: add link to the issue (KT-48162) for deprecation message
2022-09-12 17:45:34 +02:00
Pavel Mikhailovskii
fe5a6fd511
Disallow non-local break/continue in crossinline lambdas
2022-09-12 13:26:19 +00:00
Dmitriy Novozhilov
2aadaee69f
[Lombok] Properly support Guava collections with @Singular
...
^KT-53683 Fixed
2022-09-12 11:29:16 +00:00
Mikhail Glukhikh
b19832ef9a
K1: modify error message of ENUM_DECLARING_CLASS_DEPRECATED
...
Related to KT-53805
2022-09-12 10:45:23 +00:00
Mikhail Glukhikh
769a2ca9b1
K1: report ENUM_DECLARING_CLASS_DEPRECATED on enum entry properly
...
#KT-53807 Fixed
2022-09-12 10:45:23 +00:00
Alexander Udalov
ed6fe15e07
Support serialization of builtins with ExperimentalStdlibApi
...
This will allow to remove OptIn and ExperimentalStdlibApi from
serialized builtins after bootstrap.
#KT-53073
2022-09-09 21:31:39 +02:00
Alexander Udalov
686cd82327
Serialize OptIn to builtins, improve tests
...
Skip SOURCE-retention annotations in builtins serialization tests,
because otherwise the source analysis result can't be equal to the
metadata deserialization result.
#KT-53073 Fixed
2022-09-09 21:31:39 +02:00
Roman Golyshev
3f6742916a
Increment stub binary version due to externalId change
...
Follow-up to e0c2813a37
2022-09-09 18:48:30 +02:00
Mikhail Glukhikh
393e99fa44
FE: don't run overload-by-lambda-return-type with unsuccessful candidates
...
Related to KT-52927
2022-09-09 16:12:24 +00:00
Vladimir Sukharev
c8864369fd
Use main class as test generator name
...
Merge-request: KT-MR-7031
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-09-09 12:51:18 +00:00
Mikhail Glukhikh
e02fd8f4a8
FE: don't run builder inference in UNTIL_FIRST_LAMBDA mode
...
#KT-52927 Fixed
2022-09-09 12:44:39 +00:00
Ilya Kirillov
8ee4cf46d3
[slc] actualize SLC testdata
2022-09-09 14:38:12 +02:00
Jinseong Jeon
3eb68a6ee8
S/LC: fix default visibility of constructor of sealed class
2022-09-09 14:38:12 +02:00
Jinseong Jeon
4859524115
SLC: account for upperbounds when computing nullability of type parameter
2022-09-09 14:38:11 +02:00
Alexander Udalov
7dad47cd76
Add -X argument to disable generation of @SourceDebugExtension
...
This will be used in tests in the subsequent commit.
2022-09-09 14:32:35 +02:00
Alexander Udalov
87d3ce6ded
Write a copy of SMAP to a new annotation
...
To make it available for dynamically attached JVMTI agents.
`@SourceDebugExtension` annotation value is equal to the
SourceDebugExtension attribute value, which is checked now for all box
tests. The difference is that the annotation stored in the constant
pool, which is available for dynamically attached JVMTI agents.
#KT-53438 Fixed
2022-09-09 14:32:35 +02:00
Artem Kobzar
da367a467d
[K/JS] chore: stop unnecessary defineProperties generating.
2022-09-09 11:14:26 +00:00
Sergej Jaskiewicz
9176ba5b2d
[JS IR] Don't set fileIdentity when embedding sources into sourcemaps
...
(see the comment)
2022-09-09 11:02:26 +00:00
Sergej Jaskiewicz
7874b1fcad
[JS] Rename JsLocation.identityObject to fileIdentity
2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz
b9cac8a4ca
[JS IR] Support the sourceMapEmbedSources setting (partially)
...
This doesn't work with external libraries yet (including stdlib).
2022-09-09 11:02:25 +00:00
Rick Clephas
b406722e20
[K/N] Prohibit empty ObjCNames
2022-09-09 12:31:36 +02:00
Vladimir Dolzhenko
e0c2813a37
Increment version due to externalId change
...
#KT-53781
2022-09-09 08:17:50 +00:00
Dmitry Gridin
aa31ca67e2
[lc] KotlinAsJavaSupportBase: make librariesTracker abstract
...
^KT-50241
2022-09-08 13:47:40 +00:00
Dmitry Gridin
ec1b6f4f3e
[lc] KotlinAsJavaSupportBase: reduce number of findModule calls
...
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin
e58b98bb5c
[lc] KotlinAsJavaSupportBase: implement getLightClassForScript
...
^KT-50241
2022-09-08 13:47:39 +00:00
Dmitry Gridin
46548e5443
[lc] KotlinAsJavaSupportBase: implement getLightClass
...
add more caching
^KT-50241
2022-09-08 13:47:38 +00:00
Mikhail Glukhikh
596ad7d7d3
FE: make EnumEntries unstable feature to poison binaries
2022-09-08 09:03:05 +00:00
Toshiaki Kameyama
26d4e02b7c
Allow KtPsiFactory#createModifierList to create fun modifier
...
#KTIJ-16332
2022-09-07 18:03:51 +00:00
Mikhail Glukhikh
a742c126c2
FIR2IR: check for @JvmStatic also on property accessors
2022-09-07 17:05:13 +00:00
Pavel Mikhailovskii
0b453ee328
KT-41670 Check for default property accessors in SAM interfaces
2022-09-07 13:37:38 +00:00
Pavel Mikhailovskii
85ab8b4ce1
KT-53783 Prohibit "expect data object" syntax
2022-09-07 12:53:24 +00:00
Nikolay Lunyak
45619ab390
[FIR] KT-53435: Fix false positive ANNOTATION_ARGUMENT_MUST_BE_CONST
...
Otherwise, `FirNamedArgumentExpression` are not considered
const expr despite the value.
Merge-request: KT-MR-7052
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-07 12:34:26 +00:00
Rick Clephas
ff1adf596d
[FIR] Implement ObjCName checkers
2022-09-07 11:00:51 +00:00
Mikhail Glukhikh
e52c50bfaa
K2: postpone "Enable DFA warnings" to version 1.9
...
#KT-50965 Fixed
2022-09-07 08:05:20 +00:00
Dmitriy Novozhilov
cb03ef89c5
[Test] Unmute passing test
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
671083c701
[Serialization] Implement serialization checker for K2 version of plugin
...
^KT-53178 Fixed
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
e048ffcf6d
[FIR] Update tests due to KT-53873
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov
40b13898bd
[FIR] Don't set source of inferred type from expected type
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
e1fd184d14
[FIR] Fix missing initialization of backingField for properties from primary constructor
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
194741b96b
[FIR] Remove incorrect FirClassSymbol<*>.superConeTypes utility
...
Replace all usages with member `FirClassSymbol.resolvedSuperTypes`
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov
6ef3d1e573
[FE] Add helper methods for reporting diagnostics with DiagnosticContext context receiver
2022-09-07 07:57:36 +00:00
Pavel Mikhailovskii
a75d5ba4cf
KT-53465, KT-53677 Get rid of unnecessary checkcasts to array of reified type
2022-09-06 18:33:38 +00:00
Mikhail Glukhikh
d8522a8967
FE: Add test for KT-53656
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh
c1b0405c4e
[FE 1.0] Use the old type intersection for type parameter bounds
...
This is a partial revert of commit bc1c2ada
We have to use old type intersector for emptiness check because
KT-53656 were found. We return to old type intersector usage also
for type parameter bounds to prevent other possible problems.
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh
3bdd52b64a
[FE 1.0] Return to the old type intersection emptiness check
...
This reverts commit 8227c4b603 .
#KT-53656 Fixed
2022-09-06 17:57:01 +00:00
Vladimir Dolzhenko
79d1ca0504
Align externalId
...
externalId for any field in stubElementTypeHolder has to be prefix (`kotlin`) + dot (`.`) + field name
#KT-53781
2022-09-06 10:52:33 +00:00