Denis.Zharkov
80d7404faf
Minor. Reformat TypeUtils.kt
2022-10-31 14:28:51 +00:00
Denis.Zharkov
e5d2f4712a
Minor. Reformat JavaTypeConversion.kt
2022-10-31 14:28:50 +00:00
Denis.Zharkov
5cc31114cd
FIR: Support special scope for raw types
...
^KT-46369 Fixed
^KT-41794 Fixed
^KT-49351 Fixed
2022-10-31 14:28:50 +00:00
Pavel Mikhailovskii
1215ae0fe7
KT-1436 Nicer compiler errors when the feature isn't supported
2022-10-31 13:49:57 +00:00
Denis.Zharkov
e6900ec0f2
Turn of LINE_BREAK_AFTER_MULTILINE_WHEN_ENTRY code style requirement
2022-10-31 11:11:01 +00:00
Alexander Shabalin
3a35dd2947
[K/N] Mute stress_gc_allocations on mingw_x64 ^KT-54727
...
Merge-request: KT-MR-7528
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-10-31 11:09:50 +00:00
Ilya Chernikov
5d968bc2f4
Fix gradle scripts detection in the sources
...
#KT-54325 fixed
2022-10-31 09:30:13 +00:00
Alexey Belkov
2036b65b78
K1: render receiver DNN type as parenthesized
...
^KTIJ-20849
2022-10-28 12:52:22 +04:00
Sergej Jaskiewicz
7692423e44
[test] Factor out helper classes of LocalVariableDebugRunner
...
We want to use them in non JVM-specific tests.
2022-10-27 22:51:18 +00:00
Igor Chevdar
873b84491d
[K/N][codegen] Fixed bug with huge arrays during escape analysis
...
Escape analysis tried to allocate some very big arrays on the stack
because an overflow happened during size computation
2022-10-27 16:23:43 +03:00
Sergey.Shanshin
d4cfb002d0
Added support of named companion in serializable class to the FIR
...
Merge-request: KT-MR-7472
2022-10-27 12:48:29 +00:00
Jinseong Jeon
8d8d0d9922
SLC: add marker interface for collection inheritor
2022-10-27 14:41:24 +02:00
Yahor Berdnikau
e15d8fc56f
More fine-grained substitution for stdlib-jdk7{,8} dependencies
...
Before if one of the configurations has 'kotlin-stdlib:1.8+' dependency
- all other configurations will also apply substitution. But this may
break build/tools that want to use specific set of dependencies to run
itself. For example, Android Lint still uses older stdlib versions in
classpath.
Now substituion only applies to configuration (if it is resolvable) and
its resolvable children.
^KT-54653 Fixed
2022-10-27 11:37:58 +00:00
Sergej Jaskiewicz
b429e2f34f
Remove a test that doesn't make sense anymore
2022-10-27 11:28:01 +00:00
Sergej Jaskiewicz
6a40a7e471
[JS IR] Don't forget to enable lazy property initialization
2022-10-27 11:27:59 +00:00
Nikita Bobko
cdbfcdc465
Cleanup: LanguageFeature.defaultState -> LanguageFeature.isEnabledWithWarning
...
Review: https://jetbrains.team/p/kt/reviews/7418
`State` enum contains `DISABLED` item which is redundant for
`LanguageFeature`. It's redundant because `sinceVersion = null` is used
to express the same semantic.
I had to reorder some items in the enum because otherwise
`testLanguageFeatureOrder` fails. I could keep the same logic in
`testLanguageFeatureOrder` but I would need to make
`isEnabledWithWarning` public which I don't want to. Anyway, it's not
obvious what is more readable: keep `isEnabledWithWarning = true` items
at the end or at the beginning.
Also all effectively disabled features (`sinceVersion = null` or
`defaultState = State.DISABLED`) are now moved to the "Experimental"
section at the end which is obviously better.
2022-10-27 13:16:44 +02:00
Nikita Bobko
49a5186f15
Enable EnumEntries language feature by default
...
Related issue: KT-48872
Review: https://jetbrains.team/p/kt/reviews/7418
If we want to make the feature experimental then specifying
`sinceVersion` higher than the current compiler version is enough.
`defaultState = State.DISABLED` is redundant
2022-10-27 13:16:10 +02:00
Nikita Bobko
4e69d1248a
Cleanup: drop unused LanguageFeature.State.ENABLED_WITH_ERROR
...
Review: https://jetbrains.team/p/kt/reviews/7418
2022-10-27 13:16:10 +02:00
Dmitriy Novozhilov
e73049dfb0
[Native] Add workaround for KT-54668
2022-10-27 11:08:57 +00:00
Dmitriy Novozhilov
bc9bc26cc8
[Test] Add test for KT-54668
2022-10-27 11:08:56 +00:00
Dmitriy Novozhilov
f2cc5310b9
[Native] Fix code to make it compilable with K2
...
Check KT-54663 for details
2022-10-27 11:08:56 +00:00
Dmitriy Novozhilov
6bc952adff
[Test] Add test for KT-54663
2022-10-27 11:08:56 +00:00
Dmitriy Novozhilov
b7da00744b
[FIR] Consider overridden getter for setter function for synthetic property
...
^KT-54662 Fixed
2022-10-27 11:08:55 +00:00
Dmitriy Novozhilov
1927369ae9
[Test] Add test for KT-54662
2022-10-27 11:08:55 +00:00
Dmitriy Novozhilov
027b1f861c
[FIR] Update return type of delegated callables in ReturnTypeCalculator
...
^KT-54654 Fixed
2022-10-27 11:08:55 +00:00
Dmitriy Novozhilov
f441151eab
[FIR] Fix order of supertype scopes for supertypes of companion object
...
^KT-54645 Fixed
2022-10-27 11:08:54 +00:00
Dmitriy Novozhilov
d54503e66c
[Test] Add test for KT-54645
2022-10-27 11:08:54 +00:00
Nikolay Lunyak
7e323f8ac6
[FIR] KT-54692: Fix compiler crash on UInt.shl
...
Merge-request: KT-MR-7513
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-10-27 10:40:06 +00:00
Yahor Berdnikau
34478b84cd
Update KotlinJavaToolchain tests
...
^KT-50115
2022-10-27 11:51:05 +02:00
Sergej Jaskiewicz
0e3f48314a
[JS IR] Improve stepping test executor
...
Don't search for box function in the generated code;
instead, stop the execution right before calling it.
This makes stepping tests more accurate.
2022-10-27 09:28:05 +00:00
Sebastian Sellmair
edd0e5e0bf
[Gradle][Minor] Move KotlinCompilationImplFactories out of constructors
...
^KT-54312 Verification Pending
2022-10-27 09:13:17 +00:00
Sebastian Sellmair
f109b11746
[Gradle][Minor] Fix naming of KotlinCompilationAssociator impls
...
^KT-54312 Verification Pending
2022-10-27 09:13:17 +00:00
Sebastian Sellmair
331294c747
[Gradle][Minor] Rename KotlinCompilationProjection to KotlinCompilationInfo
...
^KT-54312 Verification Pending
2022-10-27 09:13:16 +00:00
Sebastian Sellmair
f148390e14
[Gradle] Rename KotlinCompilationData to GradleKpmCompilationData
...
^KT-54312 Verification Pending
2022-10-27 09:13:16 +00:00
Sebastian Sellmair
b3d82c74fe
[Gradle] KotlinCompilation: Remove .ownModuleName vs .moduleName duplication
...
This mechanism is simply not necessary anymore.
Just using the 'ownModuleName' as the value of 'moduleName' is
sufficient.
^KT-54312 Verification Pending
2022-10-27 09:13:16 +00:00
Sebastian Sellmair
02df7a7d4c
[Gradle] KotlinCompileConfig: Respect moduleName from parentKotlinOptions
...
^KT-54312 Verification Pending
2022-10-27 09:13:15 +00:00
Sebastian Sellmair
51c71efa2e
[Gradle] Add additional logging for setting .moduleName in compiler args
...
^KT-54312 Verification Pending
2022-10-27 09:13:15 +00:00
Sebastian Sellmair
570524a1a9
[Gradle] KotlinNativeCompile: Do not use transient compilation field during execution
...
^KT-54312 Verification Pending
2022-10-27 09:13:15 +00:00
Sebastian Sellmair
7b377538b1
[Gradle][Minor] Move castKotlinOptionsType and castCompilerOptionsType into kotlinCompilations.kt
...
^KT-54312 Verification Pending
2022-10-27 09:13:14 +00:00
Sebastian Sellmair
bb2a52a10c
[Gradle][Minor] Inline usage of addSourcesToKotlinNativeCompileTask
...
^KT-54312 Verification Pending
2022-10-27 09:13:14 +00:00
Sebastian Sellmair
536448eb32
[Gradle][Minor] KotlinMetadataTarget: Use KotlinOnlyTarget<KotlinCompilation>>
...
^KT-54312 Verification Pending
2022-10-27 09:13:13 +00:00
Sebastian Sellmair
f097137d61
[Gradle][Minor] KotlinSourceSetProcessor: Simplify .javaSourceSet
...
^KT-54312 Verification Pending
2022-10-27 09:13:13 +00:00
Sebastian Sellmair
8fe0c88ab1
[Gradle][Minor] KotlinCompilationProjection: Inline .isMainCompilationDatas
...
^KT-54312 Verification Pending
2022-10-27 09:13:13 +00:00
Sebastian Sellmair
cf55af55d6
[Gradle][Minor] Rename DefaultKotlinCompilationDependencyConfigurationsFactory.kt
...
^KT-54312 Verification Pending
2022-10-27 09:13:12 +00:00
Sebastian Sellmair
0a9c1ee877
[Gradle][Minor] Move implementations of KotlinCompilationTaskNamesContainer into single source
...
^KT-54312 Verification Pending
2022-10-27 09:13:12 +00:00
Sebastian Sellmair
5db60e3ebd
[Gradle][Minor] Move implementations of KotlinCompilerOptionsFactory into single source
...
^KT-54312 Verification Pending
2022-10-27 09:13:12 +00:00
Sebastian Sellmair
06e594c400
[Gradle][Minor] Move implementations of KotlinCompilationSourceSetsContainerFactory into single source
...
^KT-54312 Verification Pending
2022-10-27 09:13:11 +00:00
Sebastian Sellmair
8e8a8f7b8e
[Gradle] Move deprecated configurations into KotlinCompilationConfigurationsContainer
...
^KT-54312 Verification Pending
2022-10-27 09:13:11 +00:00
Sebastian Sellmair
b7e2923103
[Gradle] Move pluginConfiguration into KotlinCompilationConfigurationsContainer
...
^KT-54312 Verification Pending
2022-10-27 09:13:10 +00:00
Sebastian Sellmair
b383e7cd38
[Gradle] Remove CompilationDetails.kt
...
^KT-54312 Verification Pending
2022-10-27 09:13:10 +00:00