Commit Graph

79998 Commits

Author SHA1 Message Date
Jinseong Jeon b99f1a1512 FIR checker: error messages for function diagnostics
Also, update error inputs to conform to old FE's

These should have been part of commit 39df3e2b0a
2021-01-21 09:57:55 +03:00
Jinseong Jeon 021395ce39 FIR checker: error message for destructuring declaration diagnostic
Also, update error inputs to conform to old FE's

This should have been part of commit 03cb0c3cd1
2021-01-21 09:57:55 +03:00
Jinseong Jeon 35093e0958 FIR checker: error messages for properties/accessors diagnostics
Also, update error inputs to conform to old FE's

These should have been part of commit 5167d69b7c
2021-01-21 09:57:55 +03:00
Ilmir Usmanov 952576e98f JVM_IR: Do not unbox Result parameter if it not only one inline class
parameter, since in this case, the compiler generates a bridge, where
the result is unboxed.
2021-01-20 18:30:00 +01:00
Ilmir Usmanov d48f92775b JVM_IR: Do not unbox Result parameter in invoke if there is a bridge
since the bridge unboxes it.

 #KT-44141 Fixed
2021-01-20 18:29:58 +01:00
Ilya Goncharov 0ddb603eaa [JS IR] Fix of test with method in abstract class calling extension on super type 2021-01-20 20:01:42 +03:00
Steven Schäfer 9c4f8f7e54 JVM IR: Fix signature mapping for inline classes using new mangling
When resolving inline class methods in binary dependencies we look for
methods matching both the new and the old mangling scheme. On the IR
backend the method signature has to be computed for the inline class
replacement, since the logic for signature mangling is not contained in
the method signature mapping, unlike in the old backend.
2021-01-20 17:43:41 +01:00
Mikhael Bogdanov 91717cdcdd Perform inline checks in IR tests 2021-01-20 15:23:09 +01:00
Mikhael Bogdanov 216b775095 Remove obsolete code 2021-01-20 15:23:09 +01:00
Mikhael Bogdanov 147d60523d Generate inline function arguments with parameters types
#KT-44429 Fixed
2021-01-20 15:23:08 +01:00
Ilya Goncharov 50ab9ed054 [JS IR] Add test on interface with default method calling extension method on super-interface
^KT-42176 fixed
2021-01-20 14:26:38 +03:00
Pavel Kirpichenkov 5c28762c02 Fix check for local classes in approximating string table
Take local/anonymous classes and their inner classes into account.
Simplify approximation: use first available super classifier instead
of first super class. This approximation should only happen for
private declarations that were not previously approximated by frontend.
So basically the only requirement for the approximated types is to be
denotable. Note that this only works if the types are not used later.
JVM uses a different string table implementatin as it needs exact
types of private members for reflection.

^KT-20996 Fixed
2021-01-20 11:05:53 +03:00
Pavel Kirpichenkov b66f5c8180 Drop type aliases for JS and KLIB string tables
They used to use the same approximation logic anyway
^KT-20996
2021-01-20 11:05:53 +03:00
Pavel Kirpichenkov 2f3f75b512 Fix local anonymous class name error in K2MetadataCompiler
Extract the logic of approximating to denotable class supertype
from JS/KLIB and use it in metadata compiler.

^KT-20996 In Progress
2021-01-20 11:05:53 +03:00
Pavel Kirpichenkov b82a44fa63 Add test for KT-20996 2021-01-20 11:05:53 +03:00
Ilmir Usmanov cce9469e6a JVM_IR: Do not unbox Result parameter in Result methods
#KT-44140 Fixed
2021-01-20 06:27:15 +01:00
Sergey Shanshin 10d9259df5 Returned support for nullable types by not null serializers
Fixes Kotlin/kotlinx.serialization#1265
2021-01-19 20:44:47 +03:00
Ilmir Usmanov b476f1cc3e Minor. Change test to use the feature instead of suppressing error 2021-01-19 16:03:33 +01:00
Ilmir Usmanov d1ee45b518 Add language feature for suspend functions in fun interfaces
Since in 1.5 JVM_IR is enabled by default and supports suspend functions
in fun interfaces, it is safe to enable the feature by default as well.
2021-01-19 16:03:31 +01:00
Yaroslav Chernyshev 6aa6f82c47 Fix MultiplatformModelImportingContextImpl#isOrphanSourceSet predicate 2021-01-19 17:28:15 +03:00
Svyatoslav Kuzmich cf228bebc3 Use static year range in copyright of generated FIR and tests
Dynamically calculating a year is problematic, especially in cases like
FIR where generation happens in every build. When you are working on a
last year's commit, each build creates a bunch of uncommited
 changes of updating the year in copyrights.
2021-01-19 17:17:31 +03:00
Svyatoslav Kuzmich ba8223218f [Wasm] Add inline property accessors optimization 2021-01-19 17:08:58 +03:00
Svyatoslav Kuzmich 2aa3c197a3 [Wasm] Use non-persistent IR to speed up tests 2021-01-19 17:08:05 +03:00
Ilya Kirillov 11a3126c8c FIR: copy class supertypes list on iterating while calculating supertypes
This list is backed by mutable list and during iterating on it
we can resolve supertypes of that class via IDE light classes
as IJ Java resolve may resolve a lot of stuff by fir light classes
This causes ConcurrentModificationException
2021-01-19 14:34:57 +01:00
Vyacheslav Gerasimov a0ad85e20d Build: Disable caching of test tasks
Until `KTI-464 Test tasks with failed tests are cached` is resolved
2021-01-19 14:19:05 +03:00
Nikolay Krasko 301b0292e2 [MERGE] KT: build-1.5.0-dev-1616 KT/N: abfbfcde4 OLD: 8bb76c67e 2021-01-19 13:37:43 +03:00
Vasily Levchenko ece5d9b109 [kotlin compiler][update] 1.5.0-dev-1616
* 0c463d3260 - (HEAD -> master, tag: build-1.5.0-dev-1616, origin/master, origin/HEAD) KT-44378 don't generate no-arg constructor for sealed classes (vor 2 Tagen) <Dmitry Petrov>
* ee93efc19d - (tag: build-1.5.0-dev-1615) [Commonizer] Avoid leaking non-commonized types as arguments in short-circuited TAs (vor 2 Tagen) <Dmitriy Dolovov>
* 8fa848bed3 - (tag: build-1.5.0-dev-1602) FIR IDE: fix testdata after rebase (vor 3 Tagen) <Ilya Kirillov>
* 459c919072 - FIR IDE: introduce JAVA_SYNTHETIC_PROPERTY symbol origin (vor 3 Tagen) <Ilya Kirillov>
* a5e6c1d82b - FIR IDE: implement new getTopLevelFunction(/property)Symbols in FirModuleWithDependenciesSymbolProvider (vor 3 Tagen) <Ilya Kirillov>
* 450ab33f16 - FIR IDE: do not highlight by-name argument as parameter (vor 3 Tagen) <Ilya Kirillov>
* 16cd2f08fe - FIR: preserve delegatedTypeRef when transforming FirFunctionTypeRef (vor 3 Tagen) <Ilya Kirillov>
* b405cbb1ff - FIR IDE: consider synthetic functional interfaces to have LIBRARY origin (vor 3 Tagen) <Ilya Kirillov>
* 981f932033 - FIR IDE: ignore synthetic references in reference resolve (vor 3 Tagen) <Ilya Kirillov>
* 087840122a - FIR: mark FirBuiltinSymbolProvider with ThreadSafeMutableState (vor 3 Tagen) <Ilya Kirillov>
* 56bd6a30b3 - FIR IDE: introduce delegated symbol origin (vor 3 Tagen) <Ilya Kirillov>
* 2a9779cd89 - FIR IDE: resolve reference to intersection override member to overridden members (vor 3 Tagen) <Ilya Kirillov>
* 95eb701f75 - FIR: introduce symbols for intersection override (vor 3 Tagen) <Ilya Kirillov>
* 2ef8f58d90 - FIR IDE: add KDoc for KtSymbolOrogin (vor 3 Tagen) <Ilya Kirillov>
* e060778528 - FIR IDE: implement assignment statement references (vor 3 Tagen) <Ilya Kirillov>
* 14d2b1be49 - FIR IDE: resolve by-name-parameter call (vor 3 Tagen) <Ilya Kirillov>
* 47894c6cc9 - FIR IDE: invalidate LibraryModificationTracker in memory leak test (vor 3 Tagen) <Ilya Kirillov>
* 87e6dbf435 - FIR IDE: generate heap dump on memory leak in memory leak test (vor 3 Tagen) <Ilya Kirillov>
* f454ec8e4a - FIR IDE: introduce methods for working with annotations (vor 3 Tagen) <Ilya Kirillov>
* 191a1ee242 - FIR: add fake source fir element to `it` parameter (vor 3 Tagen) <Ilya Kirillov>
* 132fc9e68b - FIR IDE: invalidate caches between tests (vor 3 Tagen) <Ilya Kirillov>
* 861c9b8e45 - FIR IDE: unmute passing tests (vor 3 Tagen) <Ilya Kirillov>
* c97c4fa99c - FIR IDE: fix finding fir in container which have conflicting duplicate by name (vor 3 Tagen) <Ilya Kirillov>
* 601d5cbff8 - FIR IDE: fix duplicating diagnostics collection (vor 3 Tagen) <Ilya Kirillov>
* 008260451c - FIR: make FirNestedClassifierScopeWithSubstitution to be name aware (vor 3 Tagen) <Ilya Kirillov>
* c2866152bf - FIR IDE: fix not initialized containingClassAttr for copied declaration (vor 3 Tagen) <Ilya Kirillov>
* a7903c64f1 - FIR IDE: do not consider function literal as fqName-having declaration (vor 3 Tagen) <Ilya Kirillov>
* 1fb33207b8 - FIR IDE: add meaningful error message when opening non-source file (vor 3 Tagen) <Ilya Kirillov>
* 1901436c96 - FIR IDE: add more info to error messages (vor 3 Tagen) <Ilya Kirillov>
* c131983188 - FIR IDE: implement FirIdeProvider.getClassNamesInPackage (vor 3 Tagen) <Ilya Kirillov>
* a52674f181 - FIR: use more meaningful error messages (vor 3 Tagen) <Ilya Kirillov>
* 4d07eb27bb - FIR IDE: add incremental analysis test for function in companion object (vor 3 Tagen) <Ilya Kirillov>
* e63d084cdc - FIR IDE: allow getting light class name from EDT (vor 3 Tagen) <Ilya Kirillov>
* d53af8170b - FIR IDE: cache module libraries (vor 3 Tagen) <Ilya Kirillov>
* 8c113f02d5 - FIR IDE: consider top level file change as out of block modification (vor 3 Tagen) <Ilya Kirillov>
* d3dd6e3b96 - FIR IDE: delegate light classes is valid to corresponding symbol validity check (vor 3 Tagen) <Ilya Kirillov>
* a95f38569f - FIR IDE: fix FirModuleWithDependenciesSymbolProvider recursive calls (vor 3 Tagen) <Ilya Kirillov>
* 5838357e61 - (tag: build-1.5.0-dev-1590) Extract long project wizard tests to separate TC configuration (KTI-422) (vor 3 Tagen) <Nikolay Krasko>
* 2f30b0994a - (tag: build-1.5.0-dev-1588) Minor: mute test in WASM (vor 3 Tagen) <Dmitry Petrov>
* 6b5ee6c9f9 - (tag: build-1.5.0-dev-1586) FIR checker: warn redundant open in interface members properly (vor 3 Tagen) <Jinseong Jeon>
* 2e8b5f2380 - FIR checker: make member property checker robust to conflict modifiers (vor 3 Tagen) <Jinseong Jeon>
* 39df3e2b0a - FIR checker: introduce member function checker (vor 3 Tagen) <Jinseong Jeon>
* 5594af0d70 - FIR checker: utilize modifier retrievals (vor 3 Tagen) <Jinseong Jeon>
* 3af820eaf4 - FIR: utilize lookups of certain properties of classes/functions (vor 3 Tagen) <Jinseong Jeon>
* ec68ac36db - FIR checker: use the aliased checker when possible (vor 3 Tagen) <Jinseong Jeon>
* 03cb0c3cd1 - FIR checker: introduce PropertyChecker alias (vor 3 Tagen) <Jinseong Jeon>
* db65c787e5 - FIR checker component generator: handle type parameters in alias arguments (vor 3 Tagen) <Jinseong Jeon>
* f3dfb38163 - (tag: build-1.5.0-dev-1571) [Gradle, JS] Exclude transitive dependencies of semver4j (vor 3 Tagen) <Ilya Goncharov>
* e742af5444 - (tag: build-1.5.0-dev-1565) [Test] Run fir diagnostics tests with light tree in sequential mode (vor 3 Tagen) <Dmitriy Novozhilov>
* 2f1e4862e5 - [Test] Enable builtin parallel tests execution form JUnit5 in :compiler:tests-common-new (vor 3 Tagen) <Dmitriy Novozhilov>
* 78b2eb994b - Deduplicate logic of computing orphan source sets in MPP Gradle Import (vor 3 Tagen) <Dmitry Savvinov>
* 1d0a696a62 - Simplify building of source-sets during MPP Import (vor 3 Tagen) <Dmitry Savvinov>
* 9e58e3c3fd - Remove unused KotlinSourceSetImpl.defaultIsTestModule; simplify logic of test modules detection (vor 3 Tagen) <Dmitry Savvinov>
* 58b2064295 - Introduce MultiplatformModelImportingContext (vor 3 Tagen) <Dmitry Savvinov>
* f87aa4612b - Minor: return map straight away (vor 3 Tagen) <Dmitry Savvinov>
* cf2bd75a73 - Minor: reformat (vor 3 Tagen) <Dmitry Savvinov>
* 0aef3680c1 - Remove useless function (vor 3 Tagen) <Dmitry Savvinov>
* 824efe8498 - Remove useless condition (vor 3 Tagen) <Dmitry Savvinov>
* ecd96e14c9 - Use all participated compilations for source-sets platform detection even in non-HMPP (vor 3 Tagen) <Dmitry Savvinov>
* 09286504b7 - Add a bunch of tests on corner-cases in Gradle MPP Import (vor 3 Tagen) <Dmitry Savvinov>
* 69261ca1e6 - Add tests on precise platforms importing (vor 3 Tagen) <Dmitry Savvinov>
* 250cc1dc92 - (tag: build-1.5.0-dev-1563) [JVM] Never treat arguments to methods as locals that can be removed. (vor 3 Tagen) <Mads Ager>
* ada51509c4 - (tag: build-1.5.0-dev-1560) Test caches for linux_x64 on Linux host. (vor 3 Tagen) <Sergey Bogolepov>
* ed18fcdf28 - Use target-specific cache control in tests (vor 3 Tagen) <Sergey Bogolepov>
* 2dabfbc613 - Bump Native version. (vor 3 Tagen) <Sergey Bogolepov>
* 092020577c - More precise native cache control. (vor 3 Tagen) <Sergey Bogolepov>
* d017e1c2ce - (tag: build-1.5.0-dev-1544) Add protection for master branch in VCS settings (vor 3 Tagen) <Nikolay Krasko>
* a0d42b5da6 - Build: Download ktor from maven central (KTI-445) (vor 3 Tagen) <Nikolay Krasko>
* 0a1e4fd7d7 - Download ktor from maven central in wizard project (vor 3 Tagen) <Nikolay Krasko>
* ae67bb4565 - (tag: build-1.5.0-dev-1543) Add changelog for 1.4.30-M1 (vor 3 Tagen) <Margarita Bobova>
* c1360c5a7a - (tag: build-1.5.0-dev-1540) Uast: resolve reified callees from classpath (#4013, KT-41279) (vor 3 Tagen) <Kevin Bierhoff>
* c0dd731818 - (tag: build-1.5.0-dev-1528) Load JVM built-ins in IDE from module dependencies (vor 4 Tagen) <Pavel Kirpichenkov>
* 1479c7a270 - Minor: load FALLBACK built-ins in JvmPlatformAnalyzerServices (vor 4 Tagen) <Dmitry Savvinov>
* ba4cc4e075 - Minor: cleanup (vor 4 Tagen) <Pavel Kirpichenkov>
* b9d5c1bc39 - Move KotlinSdk to idea-analysis module (vor 4 Tagen) <Pavel Kirpichenkov>
* 2df4d26b37 - Built-ins in IDE: update tests (vor 4 Tagen) <Pavel Kirpichenkov>
* d6c27608ac - Minor: remove effectively unused test runner (vor 4 Tagen) <Dmitry Savvinov>
* 71c71d8619 - (tag: build-1.5.0-dev-1521) AndroidDependencyResolver: compatibility with AGP 7 (vor 4 Tagen) <Vyacheslav Karpukhin>
* c1722350b6 - (tag: build-1.5.0-dev-1516, origin/jupiter/rr/yunir/check-promote-to-autopush, origin/jupiter/master) Add constructors to KtScope (vor 4 Tagen) <Stanislav Erokhin>
* c5229291be - Add dispatchReceiver and extensionReceiver to relevant KtSymbols (vor 4 Tagen) <Stanislav Erokhin>
* 96b6efd401 - Add type parameters to the KtConstructorSymbol (vor 4 Tagen) <Stanislav Erokhin>
* 732a997479 - Use Variance instead of custom class in KtTypeArgumentWithVariance (vor 4 Tagen) <Stanislav Erokhin>
* f6bf2f6b7b - Add variance and isReified into KtTypeParameterSymbol (vor 4 Tagen) <Stanislav Erokhin>
* c17eee0085 - Add data/inline/fun/isExternal flags to KtClassLikeSymbol (vor 4 Tagen) <Stanislav Erokhin>
* 7e4ba1a062 - Remove unused Unknown modality from KtSymbolWithModality. (vor 4 Tagen) <Stanislav Erokhin>
* e1e096b4ea - Add PRIVATE_TO_THIS visibility to KtSymbolWithVisibility (vor 4 Tagen) <Stanislav Erokhin>
* d50a5e7517 - Add ConstantValueKind to KtSimpleConstantValue (vor 4 Tagen) <Stanislav Erokhin>
* d24331955e - Rename FirConstKind to ConstantValueKind and move it to compiler.common (vor 4 Tagen) <Stanislav Erokhin>
* eed27906e3 - (tag: build-1.5.0-dev-1508) KT-44043 [Sealed interfaces]: tests (vor 4 Tagen) <Andrei Klunnyi>
* 43cc022613 - KT-44043 [Sealed interfaces]: quickfix for nested -> to another file (vor 4 Tagen) <Andrei Klunnyi>
* da98fc4b07 - KT-44043 [Sealed interfaces]: quickfix for nested -> to upper level (vor 4 Tagen) <Andrei Klunnyi>
* 521bebee0f - KT-44043 [Sealed interfaces]: quickfix for top level abstractions (vor 4 Tagen) <Andrei Klunnyi>
* a6b51da308 - (tag: build-1.5.0-dev-1490, origin/master-for-ide) Fix compilation in the case of JDK_16 pointing to JDK 1.8 (vor 4 Tagen) <Alexander Udalov>
* 3be62dfc89 - (tag: build-1.5.0-dev-1489) Build: enable -Werror in stdlib/core/compiler/plugins modules (vor 4 Tagen) <Alexander Udalov>
* cc90ff78fd - Build: output build time for tasks with --info (vor 4 Tagen) <Alexander Udalov>
* 07ce991b3f - Build: minor, remove extra newlines in log (vor 4 Tagen) <Alexander Udalov>
* 2a7a297399 - Suppress "runtime JAR files version mismatch" warnings in some plugins (vor 4 Tagen) <Alexander Udalov>
* 0d8f909bda - Use ObsoleteTestInfrastructure instead of Deprecated in black box tests (vor 4 Tagen) <Alexander Udalov>
* 221f44da5f - Fix warnings in stdlib/compiler/plugins/test code (vor 4 Tagen) <Alexander Udalov>
* b3d85e656e - Fix warnings after update to 202 platform (vor 4 Tagen) <Alexander Udalov>
* ee7691f1ad - Fix IntArrayList deprecation warning in JvmDependenciesIndexImpl (vor 4 Tagen) <Alexander Udalov>
* 8ae19f5cd7 - Fix deprecated Interner/StringInterner usages after update to 202 (vor 4 Tagen) <Alexander Udalov>
* f8c2f4a8d0 - Fix incorrect code in AbstractJspecifyAnnotationsTest (vor 4 Tagen) <Alexander Udalov>
* d101f1b3a6 - Minor, fix compiler warnings in kotlin-serialization-compiler (vor 4 Tagen) <Alexander Udalov>
* e0363788f4 - (tag: build-1.5.0-dev-1487) Remove some remaining tests on old coroutines (vor 4 Tagen) <Alexander Udalov>
* 7953974f3d - (tag: build-1.5.0-dev-1474) [FIR] Make WRONG_IMPLIES_CONDITION warning instead of error (vor 5 Tagen) <Mikhail Glukhikh>
* 7c8a67b20b - Make useFir build property set -Xuse-fir flag (vor 5 Tagen) <Simon Ogorodnik>
* bfbb6afee5 - (tag: build-1.5.0-dev-1472) Add sourcesJar from metadata target to root multiplatform publication (vor 5 Tagen) <sebastian.sellmair>
* dfdd107fc0 - (tag: build-1.5.0-dev-1466) Update KAPT stubs for tests (vor 5 Tagen) <Ivan Gavrilovic>
* 3b2986f069 - Apply consistent sorting for elements from the same position (vor 5 Tagen) <Ivan Gavrilovic>
* ad8517c19a - Add tests from the reverted commit (vor 5 Tagen) <Ivan Gavrilovic>
* ecc0eee3cf - KT-44130: Sort fields and methods in generated stubs (vor 5 Tagen) <Ivan Gavrilovic>
* a320152a03 - Revert "Sort class members to ensure deterministic builds" (vor 5 Tagen) <Ivan Gavrilovic>
* 77f8c1e58f - (tag: build-1.5.0-dev-1447) Improve cacheability test coverage on kotlin compile, kapt tasks (vor 5 Tagen) <Bingran>
* 1c8a25c106 - (tag: build-1.5.0-dev-1443) KT-44020: Rename KAPT configuration used as task property (vor 5 Tagen) <Ivan Gavrilovic>
* 47c4197098 - (tag: build-1.5.0-dev-1429) [JS old] Revert fix made for KT-44221 in ab753625 (vor 5 Tagen) <Zalim Bashorov>
* 0d6c5dd2bc - (tag: build-1.5.0-dev-1425) Fix incorrect generation of Ant task tests, restore tests (vor 5 Tagen) <Alexander Udalov>
* 0e62cd9998 - (tag: build-1.5.0-dev-1412) Regenerate tests (vor 6 Tagen) <Dmitriy Novozhilov>
* e3066a166e - [Test] Migrate AbstractFirBlackBoxCodegenTest to new infrastructure (vor 6 Tagen) <Dmitriy Novozhilov>
* af5a635f85 - [Test] Ignore error diagnostics from FIR in some BB tests (vor 6 Tagen) <Dmitriy Novozhilov>
* 2eeed1281c - [Test] Mute failing FIR BB tests related to MPP (vor 6 Tagen) <Dmitriy Novozhilov>
* 5329a6ce8e - [Test] Properly dispose class loader for running BB tests (vor 6 Tagen) <Dmitriy Novozhilov>
* e6fd74f368 - [Test] Add ability to remove default directives in test configuration (vor 6 Tagen) <Dmitriy Novozhilov>
* e3c7bd5f85 - [Test] Migrate AbstractIrBlackBoxCodegenTest to new infrastructure (vor 6 Tagen) <Dmitriy Novozhilov>
* f1a2e66ba4 - [Test] Setup proper jvm target for kotlinClassImplementsJavaInterface test (vor 6 Tagen) <Dmitriy Novozhilov>
* 93ce37319a - [Test] Drop BlackBoxCodegenTestGenerated from :compiler:tests-different:jdk (vor 6 Tagen) <Dmitriy Novozhilov>
* 85c87f7df9 - [Test] Migrate AbstractBlackBoxCodegenTest to new infrastructure (vor 6 Tagen) <Dmitriy Novozhilov>
* f01122d8dc - [Test] Fix module names according to MPP module conventions in test data (vor 6 Tagen) <Dmitriy Novozhilov>
* 0608c50e27 - [Test] Properly configure dependencies for common modules in ModuleStructureExtractor (vor 6 Tagen) <Dmitriy Novozhilov>
* 285ccf7583 - [Test] Don't generate JVM BB tests for expect-actual linker (vor 6 Tagen) <Dmitriy Novozhilov>
* 3a41f1e435 - [Test] Filter out `support` module with coroutine helpers from module deps (vor 6 Tagen) <Dmitriy Novozhilov>
* 065255adbe - [Test] Support friend modules in new test infrastructure (vor 6 Tagen) <Dmitriy Novozhilov>
* 7e92fb8eb9 - [Test] Remove redundant empty `IGNORE_BACKEND` directive (vor 6 Tagen) <Dmitriy Novozhilov>
* 726184eda9 - [Test] Add @JvmMultifileClass to coroutine helpers files (vor 6 Tagen) <Dmitriy Novozhilov>
* 9fd2800594 - [Test] Support KOTLIN_CONFIGURATION_FLAGS directive in new tests (vor 6 Tagen) <Dmitriy Novozhilov>
* e0cd830a0e - [Test] Drop codegen tests for experimental coroutines (vor 6 Tagen) <Dmitriy Novozhilov>
* d547ce7c42 - [Test] Save TargetBackend instead of BackendKind in TestModule (vor 6 Tagen) <Dmitriy Novozhilov>
* 3c2079c926 - [Test] Compute target backend in test generator automatically using reflection (vor 6 Tagen) <Dmitriy Novozhilov>
* 9378d1ff31 - [Test] Add nullability annotations on InTextDirectivesUtils methods (vor 6 Tagen) <Dmitriy Novozhilov>
* 49f2ac3545 - (tag: build-1.5.0-dev-1404) KT-43818:NPM Dependencies already resolved and installed in Android Studio resolve (vor 6 Tagen) <fjjohnchen>
* 5382e68180 - (tag: build-1.5.0-dev-1402) [Test] Properly delete temporary directories after test run (vor 6 Tagen) <Dmitriy Novozhilov>
* ce44a2a7e4 - [Test] Inject info about test (class and method names, tags) to TestServices (vor 6 Tagen) <Dmitriy Novozhilov>
* 84eb74e194 - [Test] Fix bug with FirCfgDumpHandler which didn't start at all (vor 6 Tagen) <Dmitriy Novozhilov>
* 13f6b37ae7 - [Test] Drop duplicating `Constructor` typealias (vor 6 Tagen) <Dmitriy Novozhilov>
* af94bcebea - (tag: build-1.5.0-dev-1401) [IDE] Propagate KotlinFacetSettings version and completely drop isReleaseCoroutines flag (vor 6 Tagen) <Dmitriy Novozhilov>
* e991c9d476 - [CLI] Drop `CommonCompilerArguments.coroutinesState` (vor 6 Tagen) <Dmitriy Novozhilov>
* df3b12e13b - [FE] Drop `coroutinesState` from build configurations plugins (vor 6 Tagen) <Dmitriy Novozhilov>
* 7f4a925b85 - [FE] Drop `isReleaseCoroutines` flag from LanguageSettingsProvider (vor 6 Tagen) <Dmitriy Novozhilov>
* a8b65bc673 - [IDE] Drop coroutines KotlinFacetSettings.coroutineSupport (vor 6 Tagen) <Dmitriy Novozhilov>
* 69e1d60b08 - [IDE] Drop coroutines combo box from compiler configuration tab (vor 6 Tagen) <Dmitriy Novozhilov>
* 0fef890d1a - Minor refactoring in CompileEnvironmentUtil (vor 6 Tagen) <Alexander Udalov>
* 4374438ff1 - Kotlinc: Exclude module-info.class from resulting jar when "-include-runtime" is specified (vor 6 Tagen) <scaventz>
* 742fef9042 - (tag: build-1.5.0-dev-1398) Rewrite generator for OperationsMapGenerated (vor 6 Tagen) <Alexander Udalov>
* df75cddcb8 - (tag: build-1.5.0-dev-1395) [Gradle, JS] Add possibility to set jvmArgs for dce process (vor 6 Tagen) <Ilya Goncharov>
* ab753625fe - (tag: build-1.5.0-dev-1394) [JS Legacy] Fix returning Char from suspend functions (KT-44221) (vor 6 Tagen) <Svyatoslav Kuzmich>
* 2d88ff6fb2 - [JS IR] Fix unsgined integer default arguemtns (KT-44180) (vor 6 Tagen) <Svyatoslav Kuzmich>
* 0110b4e4b4 - (tag: build-1.5.0-dev-1390) Ant: Add support for fork-mode (vor 6 Tagen) <scaventz>
* ee952db1a2 - (tag: build-1.5.0-dev-1389) Added samples for String.replace() function (vor 6 Tagen) <Kris Hall>
* 77180a5b13 - (tag: build-1.5.0-dev-1388) [JVM IR] Make file classes with all private members package-private (vor 6 Tagen) <Iaroslav Postovalov>
* 032c64669c - (tag: build-1.5.0-dev-1386) Show pre-released 1.5 version in configuration preferences (vor 6 Tagen) <Mikhail Zarechenskiy>
* d53354057a - (tag: build-1.5.0-dev-1377, origin/push/mg-google-prs) FIR: build functional type for SAM with receiver properly (vor 6 Tagen) <Jinseong Jeon>
* f618763250 - FIR: implement -Xfriend-paths (vor 6 Tagen) <pyos>
* bd708da82c - (tag: build-1.5.0-dev-1361, origin/rr/ic/fixes2) Do not check script discovery file extension (vor 6 Tagen) <Ilya Chernikov>
* 0e3aaceb16 - (tag: build-1.5.0-dev-1356) Fix ultra light structure for @JvmRecord classes (vor 6 Tagen) <Denis.Zharkov>
* 43b61a618d - (tag: build-1.5.0-dev-1355) [IR+Tests] Improve Local Function Debugging Experience (vor 6 Tagen) <Kristoffer Andersen>
* c2d7b69e5f - (tag: build-1.5.0-dev-1349) Remove bytecode text test kt15806.kt (vor 7 Tagen) <Alexander Udalov>
* 92f3b759c0 - (tag: build-1.5.0-dev-1347) Fix codegen test data for genericTypeWithNothing.kt (vor 7 Tagen) <Alexander Udalov>
* 0c0dbd6245 - (tag: build-1.5.0-dev-1338) [FIR] Perform more accurate pre-check of candidate receiver type (vor 7 Tagen) <Mikhail Glukhikh>
* 4e4293b609 - [FIR] Introduce separate getTopLevelFunction/PropertySymbols (vor 7 Tagen) <Mikhail Glukhikh>
* fd99f2b2cf - FirDefaultStarImportingScope: improve measurements (vor 7 Tagen) <Mikhail Glukhikh>
* 33037fd885 - FirAbstractImportingScope: minor simplification (vor 7 Tagen) <Mikhail Glukhikh>
* 3f5e515bd6 - Fix broken ABI in DiagnosticFactory #KT-44145 Fixed (vor 7 Tagen) <Mikhail Glukhikh>
* b02a9846d0 - (tag: build-1.5.0-dev-1335) IR KT-44233 support flexible nullability in IrTypeSystemContext (vor 7 Tagen) <Dmitry Petrov>
* 093f62caac - (tag: build-1.5.0-dev-1330) FIR2IR: check non-parameter Unit type for adapted callable references (vor 7 Tagen) <Jinseong Jeon>
* 4d3ec301c0 - (tag: build-1.5.0-dev-1328) Misprint: "val or val" instead of "val or var" (vor 7 Tagen) <Mikhail Galanin>
* 12078666c2 - (tag: build-1.5.0-dev-1326) Add warning if both -Xuse-ir and -Xuse-old-backend are passed (vor 7 Tagen) <Alexander Udalov>
* cb3191769d - Enable JVM IR by default if language version is >= 1.5 (vor 7 Tagen) <Alexander Udalov>
* 22d0e5eb65 - Rename -Xno-use-ir -> -Xuse-old-backend, add Gradle option (vor 7 Tagen) <Alexander Udalov>
* b8fb1ce83c - (tag: build-1.5.0-dev-1325) Fix Java 9 module tests for many JDKs (vor 7 Tagen) <Alexander Udalov>
* b8d7b39e2c - Extract Java 9 module test about irrelevant jars in JDK home (vor 7 Tagen) <Alexander Udalov>
* 9fd250b2b1 - Exclude libraries/stdlib/wasm/build in CodeConformanceTest (vor 7 Tagen) <Alexander Udalov>
* 1e67702128 - (tag: build-1.5.0-dev-1323) [Test] Introduce opt in @ObsoleteTestInfrastructure for migrating tests to new infrastructure (vor 7 Tagen) <Dmitriy Novozhilov>
* dfc86feecd - (tag: build-1.5.0-dev-1321, origin/push/pr3982) [IR] Extend test coverage for smart cast handling. (vor 7 Tagen) <Mads Ager>
* 6fc0de39c2 - [PSI2IR] Propagate smart cast information for variable loads. (vor 7 Tagen) <Mads Ager>
2021-01-19 13:37:37 +03:00
Alexander Shabalin a362742a37 Enable C++17 (#4623) 2021-01-19 13:37:37 +03:00
SvyatoslavScherbina ee9c2f0e33 Deprecate kotlinc K/N scripts because they clash with real kotlinc
Also make them print the message clarifying that it's Kotlin/Native,
not Kotlin/JVM.

 #KT-43874 Fixed.
2021-01-19 13:37:37 +03:00
Alexander Shabalin 411506127c Fix RuntimeCheck usage (#4638) 2021-01-19 13:37:37 +03:00
Svyatoslav Scherbina ec62b595cb Improve discoverability of KT-42254 in case of linker failure 2021-01-19 13:37:36 +03:00
Svyatoslav Scherbina acbdd7f8ae Improve discoverability of KT-42254 in case of runtime assertion 2021-01-19 13:37:36 +03:00
Alexander Shabalin d57802633c Use Alloc.h everywhere (#4611) 2021-01-19 13:37:36 +03:00
SvyatoslavScherbina 37bcd0894f Workaround inconsistent descriptor for Any.hashCode in ObjCExport
Recent changes to IR (adopted in https://github.com/JetBrains/kotlin-native/pull/4621)
have broken some invariants Native backend relies on, in particular now 
`hashCodeIrFunction.descriptor.containingDeclaration` is not `builtIns.any`,
but is an "IR-based" descriptor which has same fq name.
This breaks ObjCExport's predicate detecting `hashCode`
(which in turn breaks `interop_objc_smoke` test in two-stage mode).
This commit doesn't fix the invariants, but workarounds the problem by making the predicate more flexible.
2021-01-19 13:37:36 +03:00
Igor Chevdar 1222b72dcd [IR] Fix for https://youtrack.jetbrains.com/issue/KT-44219 + test 2021-01-19 13:37:36 +03:00
Alexander Shabalin aed23ff098 Use toolchain clang for runtime tests on mac (#4632) 2021-01-19 13:37:36 +03:00
Alexander Shabalin 3eb2ec5cc1 Use clang format attribute (#4624) 2021-01-19 13:37:36 +03:00
Alexander Shabalin adf80418af Use common pattern for function-like macro (#4625) 2021-01-19 13:37:36 +03:00
Alexander Shabalin 32e3deace1 Enable unused-function warning for runtime (#4628) 2021-01-19 13:37:36 +03:00
Sergey Bogolepov 284d42fd2b Use camelCase for cacheKind control property
Because it is more intuitive for end-users.
2021-01-19 17:31:45 +07:00
pyos 29f95c7df2 FIR: improve inference of implicit type arguments in casts
Type parameters do not necessarily match one-to-one, or preserve order.
2021-01-18 18:01:03 +03:00
sebastian.sellmair acdc1f532b Rewrite CommonizerTask params to fix ^KT-42098 2021-01-18 14:57:18 +00:00
Shagen Ogandzhanian 23332bac13 More precise message for "this test can be unmuted" 2021-01-18 12:51:23 +01:00
Vladimir Dolzhenko 6331a135c8 Add LightClassUtil.getLightClassMethodsByName to avoid resolving all lightClassMethods and filtration later on 2021-01-18 11:13:16 +00:00
Ilmir Usmanov 167bfcf6ea Minor. Remove accidentally added bunch file 2021-01-18 10:14:11 +01:00
Sebastian Sellmair bf5feb1b4a Remove KotlinMetadataTarget's KotlinTargetComponent in favour of KotlinSoftwareComponent.kt
^KT-44322 fixed
2021-01-18 08:49:30 +00:00
Mikhail Glukhikh 9a5791ad6d FIR: use correct context for enum entry resolve
Now the same resolve context is used for enum entries and
for constructors.
2021-01-18 08:34:46 +03:00
Mikhail Glukhikh f85fc47383 FIR: introduce separate companion object resolve context
Before this commit, during the resolve of companion objects we used
the same context than for any nested class. However, during companion
object resolve we should not have companion object receiver itself
accessible in any case (in particular, it should not be accessible
in constructor). So in this commit we introduced separate context
for this purpose.
2021-01-18 08:32:06 +03:00
Mikhail Glukhikh f282c3e547 Cleanup: FirTowerResolveTask 2021-01-18 08:28:49 +03:00
Mikhail Glukhikh 9f06c1a500 FIR cleanup: runResolverForDelegatingConstructor 2021-01-18 08:28:37 +03:00