Commit Graph

60051 Commits

Author SHA1 Message Date
Mikhail Glukhikh d702dc862a FIR light tree: eliminate unused 'project' argument 2019-12-19 11:19:00 +03:00
Denis Zharkov e8131d6e30 Choose Java field during overload resolution with a pure Kotlin property
^KT-31244 Fixed
2019-12-19 10:53:31 +03:00
Dmitriy Novozhilov aa8578b675 Allow null operators for result and using Result as return type with enabled InlineClasses 2019-12-19 10:22:45 +03:00
Dmitriy Novozhilov eed5b3f1d1 Add quickfix for removing redundant spread operator
#KT-25306 Fixed
2019-12-19 10:22:45 +03:00
Dmitriy Novozhilov ee36fb903f Allow use expression of array type as named argument for vararg 2019-12-19 10:22:44 +03:00
Alexander Udalov 0cb48999ff JVM IR: retain optional annotations as package private classes
Similarly to how it's done in the old backend (see
PackageCodegenImpl.generateClassesAndObjectsInFile and
AnnotationCodegen.genAnnotation)
2019-12-18 20:25:11 +01:00
Steven Schäfer 5d3ef4c632 JVM IR: Fix names of fake local variables for inline arguments 2019-12-18 18:50:29 +01:00
Denis Zharkov c486fa6189 NI: Report incompatible receiver of callable reference
^KT-35535 Fixed
2019-12-18 19:33:55 +03:00
Denis Zharkov dd56c3d918 NI: Fix property references overload ambiguity
^KT-35213 Fixed
2019-12-18 19:33:55 +03:00
Alexander Gorshenev ab79c3e0a0 Properly mute (and unmute) tests for unrelated backends 2019-12-18 19:29:56 +03:00
Alexander Gorshenev ffa368e0a7 Reconciled -Xklib-mpp with commonizer 2019-12-18 19:29:56 +03:00
Alexander Gorshenev dc8240c24e Expect/actual support in klibs under -Xklib-mpp 2019-12-18 19:29:56 +03:00
Alexander Udalov 218d7c31ed Remove muted tests on automatic experimental->release coroutine migration 2019-12-18 17:21:44 +01:00
Alexander Udalov 3ac5cb9a6e Minor, fix typos in exception message 2019-12-18 17:17:21 +01:00
Pavel Kirpichenkov ebb9f09656 [NI] Fix issues with star projection uncapturing
Prevent stack overflow during uncapturing of star projection
for parameter with recursive upper bound.
Uncapture star projections for flexible type parameters with
respect to flexible upper bound.

^KT-35210 Fixed
2019-12-18 16:19:33 +03:00
Pavel Kirpichenkov 86dc0925b1 [NI] Preserve constraint position for OnlyInputType during incorporation
Variable with complex dependency on other variable loses its
original constraint position when variable it depends on is fixed.
To prevent that, original input position is saved in incorporation
position.
2019-12-18 16:19:33 +03:00
Pavel Kirpichenkov 2fc79856a2 [NI] Fix OnlyInputTypes for captured types
Uncapture projections recursively for cases when captured type is not
top-level type or first level type argument
2019-12-18 16:19:32 +03:00
Alexander Udalov 16db3a8b5f Fix compiler and IDE tests on Experimental/RequiresOptIn
See cdbabf224f, e009c7064e
2019-12-18 14:09:06 +01:00
Ilya Kirillov 830f0c6137 Fix class not found exception in gradle wizard tests 2019-12-18 15:54:54 +03:00
Ilya Kirillov 1ab405a86c Wizard: introduce unit test mode 2019-12-18 15:54:51 +03:00
Ilya Kirillov 1c30572844 Wizard: fix android tests 2019-12-18 15:54:50 +03:00
Ilya Kirillov b2166dc40d Wizard: fix wrong checking for project kind in UI 2019-12-18 15:54:48 +03:00
Ilya Kirillov c1ce215b5d Wizard: disable abbility to switch between targets in existing module 2019-12-18 15:54:47 +03:00
Ilya Kirillov 7204ab091a Wizard: add suggested module names for js targets 2019-12-18 15:54:44 +03:00
Ilya Kirillov fc9f63d49f Wizard: do not allow to create more than one target of each type 2019-12-18 15:54:42 +03:00
Ilya Kirillov aa2992e84a Wizard: add additional applicability checker for template 2019-12-18 15:54:41 +03:00
Ilya Kirillov 40367635cc Wizard: remove unused android service 2019-12-18 15:54:40 +03:00
Ilya Kirillov af174b4f74 Wizard: format templates code 2019-12-18 15:54:38 +03:00
Ilya Kirillov b29e6d0c69 Wizard: add simple js template 2019-12-18 15:54:36 +03:00
Ilya Kirillov 5d56f3d28b Wizard: do not print duplicated repositories 2019-12-18 15:54:35 +03:00
Ilya Kirillov 32a151f561 Wizard: introduce interceptors for module templates 2019-12-18 15:54:33 +03:00
Ilya Kirillov 8bf9c31880 Wizard: add simple JS client template 2019-12-18 15:54:30 +03:00
Ilya Kirillov 56fccce305 Wizard: add basic ktor server template 2019-12-18 15:54:27 +03:00
Ilya Kirillov f927fb3471 Wizard: introduce ServicesManager & correctly handle disabled gradle & maven Idea plugins 2019-12-18 15:54:24 +03:00
Ilya Kirillov 9011eecfdf Wizard: change wizard title to experimental 2019-12-18 15:54:22 +03:00
Ilya Kirillov b10e157147 Wizard: Create parent group for current and experimental project wizard 2019-12-18 15:54:20 +03:00
Ilya Kirillov 8684b0d6c1 Wizard: show experimental new project wizard only by registry flag 2019-12-18 15:54:19 +03:00
Ilya Kirillov aca193ddd2 Wizard: Add initial version of the new project wizard 2019-12-18 15:54:16 +03:00
Mikhael Bogdanov 4916f166fe Move android.test.dependencies under dependencies folder 2019-12-18 13:34:28 +01:00
Georgy Bronnikov 0d8036bb14 JVM_IR: do not generate main() when extension main is present
Extension methods with signature C.main() should not cause generation
of main(args: Array<String>).
2019-12-18 15:25:57 +03:00
Victor Petukhov 9d0c736f0e Use assertAllTestsPresentByMetadataWithExcluded for addSpreadOperatorForArrayAsVarargAfterSam IDE quick fix test 2019-12-18 15:21:01 +03:00
Georgy Bronnikov 220ea72d65 JVM_IR: add coercion for index in ArrayGet intrinsic 2019-12-18 13:03:12 +03:00
Igor Chevdar cca3f13e48 Added multi-module test on inline functions 2019-12-18 12:45:41 +03:00
Roman Golyshev bd805d71b1 KT-35463 EA-214439 Pass adjusted files to KotlinAwareMoveFilesOrDirectoriesDialog instead of originals
- Passing raw `sourceElements` have lead to `ClassCastException` when `KtClassOrObject` was casted to `PsiFileSystemItem` in `KotlinAwareMoveFilesOrDirectoriesDialog::initializeData`
- Migrate from `[PsiElement]` to more precise `[PsiFileSystemItem]`
  - This removes the cast to `PsiFileSystemItem` at all
- This bug can be reproduced only in Android Studio for some reason
- ^KT-35463 Fixed
- ^EA-214439 Fixed
2019-12-18 12:00:47 +03:00
Toshiaki Kameyama dd8396efbc Convert lambda to reference: support nested class constructor call (#2877)
#KT-34690 Fixed
2019-12-17 22:52:46 +01:00
Zalim Bashorov 646c7ad0af [IDE, klib] Support in IDE klibs with dynamic type 2019-12-17 22:06:55 +03:00
Vyacheslav Gerasimov 34eb664504 Build: Remove teamcity tag setup from settings.gradle (tag via gradle arguments instead) 2019-12-17 20:53:13 +03:00
Alexander Udalov 7eda60d57e Minor, add more tests on signature-polymorphic calls
Add a test on null (since null is a special case in the
PolymorphicSignature spec), and a test on a call without assignment to a
variable
2019-12-17 18:44:19 +01:00
Alexander Udalov 64d40b4743 Support JVM polymorphic signature calls to methods with void return type
#KT-32026 Fixed
2019-12-17 18:39:05 +01:00
Alexander Udalov e009c7064e Add -Xopt-in command line argument
As per https://github.com/Kotlin/KEEP/pull/201
2019-12-17 18:17:48 +01:00