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
Sebastian Sellmair
c71517399e
[Gradle] Remove Compiler.*Options typealias
...
^KT-54312 Verification Pending
2022-10-27 09:13:10 +00:00
Sebastian Sellmair
3bc4e291ff
[Gradle] JsKotlinDependencyConfigurationsFactory: Fix compileClasspath and runtimeClasspath
...
^KT-54312 Verification Pending
2022-10-27 09:13:09 +00:00
Sebastian Sellmair
5f717ffd56
[Gradle] KotlinCompilationImplFactory.PostConfigure: Use DecoratedKotlinCompilation
...
to clear up dedicated usage
KT-54312
2022-10-27 09:13:09 +00:00
Sebastian Sellmair
18392d98ea
[Gradle] Update API references
...
KT-54312
2022-10-27 09:13:09 +00:00
Sebastian Sellmair
69b7cef2e2
[Gradle] Restore AbstractKotlinCompilation and AbstractKotlinCompilationToRunnableFiles...
...
... into KotlinCompilation class hierarchy (scheduled for removal later)
KT-54312
2022-10-27 09:13:08 +00:00
Sebastian Sellmair
1737daea55
[Gradle] Remove CompilationDetails (in favor of new KotlinCompilationImpl)
...
KT-54312
2022-10-27 09:13:08 +00:00
Sebastian Sellmair
af19882589
[Gradle] Implement KotlinWithJavaCompilation with underlying KotlinCompilationImpl
...
KT-54312
2022-10-27 09:13:07 +00:00
Sebastian Sellmair
e890e8178b
[Gradle] Implement KotlinJvmAndroidCompilation with underlying KotlinCompilationImpl
...
KT-54312
2022-10-27 09:13:07 +00:00
Sebastian Sellmair
0069457b94
[Gradle] Implement KotlinJs*Compilation with underlying KotlinCompilationImpl
...
KT-54312
2022-10-27 09:13:07 +00:00
Sebastian Sellmair
0729d7519c
[Gradle] Implement KotlinCommonCompilation with underlying KotlinCompilationImpl
...
KT-54312
2022-10-27 09:13:06 +00:00
Sebastian Sellmair
4cbd715b17
[Gradle] Implement Kotlin*NativeCompilations with underlying KotlinCompilationImpl
...
KT-54312
2022-10-27 09:13:06 +00:00