Commit Graph

66577 Commits

Author SHA1 Message Date
Mathias Quintero 34a64d9171 Making var arg kParameters default to empty array no argument given
fixes KT-29969
2020-04-01 16:00:16 +02:00
anastasiia.spaseeva b1dbacf45f [Spec tests] Fix test-info parser for relevant places 2020-04-01 16:30:24 +03:00
anastasiia.spaseeva 9f684bfd65 [Spec tests] Add tests for call-with-specified-type-parameters 2020-04-01 16:30:23 +03:00
Alexander Udalov 3269a7e693 Change behavior of equals/hashCode on adapted function references
Function references are now equal if they refer to the same function,
and if the parameter/return type adaptation, which happens when a
reference is used where some function type is expected, is exactly the
same. This includes the number of expected positional parameters (which
can be affected by defaults/varargs), whether the coercion of vararg
parameter to Array type happened, and whether the coercion of return
type to Unit happened.

 #KT-37543 Fixed
2020-04-01 14:18:49 +02:00
Toshiaki Kameyama c344b85d4e Convert parameter <-> receiver intention: do not add label to 'this' if not needed
#KT-17615 Fixed
#KT-30028 Fixed
#KT-32809 Fixed
#KT-28085 Fixed
#KT-37508 Fixed

Convert receiver to parameter:

#KT-37508 Fixed
2020-04-01 13:26:55 +03:00
Alexander Udalov 34e9e899f8 FIR: move FirModifierList to module 'fir:checkers'
To remove dependency of a large module 'fir:tree' on 'psi', allowing
them to compile in parallel.
2020-04-01 12:09:41 +02:00
Toshiaki Kameyama 3263e85bee Introduce "Remove fun modifier" quick fix for FUN_INTERFACE_WRONG_COUNT_OF_ABSTRACT_MEMBERS error
#KT-37539 Fixed
2020-04-01 12:55:22 +03:00
Dmitriy Dolovov bfd6eeda60 Fix compilation with JPS 2020-04-01 16:42:04 +07:00
Toshiaki Kameyama e455e926aa Implement members: fix it works correctly if primary constructor has implemented member
#KT-37312 Fixed
2020-04-01 12:24:27 +03:00
Ilya Gorbunov 5eabc1117f Generate constant expression initializers for special fp values in kapt
Update new constant values propagated in kapt class-to-stub test
2020-04-01 08:06:57 +03:00
Ilya Gorbunov 427750ba03 Update builtins test data 2020-04-01 08:06:57 +03:00
Ilya Gorbunov f3fc1197ae Add SIZE_BITS and SIZE_BYTES constants to Double and Float
#KT-29182
2020-04-01 08:06:57 +03:00
Ilya Gorbunov 1c93911279 Make Double and Float known values constant
#KT-13887
2020-04-01 08:06:57 +03:00
Dmitry Gridin 435a7e7e26 i18n: fix name for LiftReturnOutFix
#KT-37483
#KT-37893 Fixed
2020-04-01 11:55:22 +07:00
Dmitriy Dolovov 5411b85cb9 Minor. Rename isKonanStdlib() into isNativeStdlib() 2020-04-01 11:47:10 +07:00
Dmitriy Dolovov e69b2ed47d Drop redundant dependencies on :native:kotlin-native-utils 2020-04-01 11:47:01 +07:00
Dmitriy Dolovov 31a1f8ff4b Include :native:kotlin-native-utils into kotlin-compiler.jar 2020-04-01 11:46:55 +07:00
Dmitriy Dolovov 28cb9d4e13 Gradle: Remove redundant dependency on 'kotlin-native-utils' artifact 2020-04-01 11:46:49 +07:00
Dmitriy Dolovov 5f5f219367 Keep KonanPlatformKt.isNative for backward compatibility 2020-04-01 11:46:43 +07:00
Ilya Gorbunov 10d5726a02 Update test data that depends on stdlib method docs 2020-04-01 02:55:30 +03:00
Toshiaki Kameyama 6eebe21897 Remove redundant backticks: fix false positive for multiple underscores
#KT-37496 Fixed
2020-04-01 00:46:22 +03:00
Toshiaki Kameyama 34cfe7dfdb "Add missing component" intention: fix it works correctly if entries is empty
#KT-36094 Fixed
2020-04-01 00:42:43 +03:00
Victor Turansky 0a215cafa7 README Update 'Gradle properties' link 2020-04-01 00:35:17 +03:00
Victor Turansky 136a64a0b7 README Kotlin DSL script for composite build 2020-04-01 00:31:07 +03:00
Toshiaki Kameyama e5b4b03314 RedundantLambdaArrowInspection: fix false positive when receiver is qualified expression
#KT-37502 Fixed
2020-03-31 20:36:24 +03:00
Ilya Kirillov 487e1ddddc Wizard: do not update path & artifactId value for invalid project name 2020-03-31 20:32:37 +03:00
Ilya Kirillov fef3ea573b Wizard: allow "-" char in artifactId/groupId & fix their error messages
#KT-37820 fixed
2020-03-31 20:32:37 +03:00
Mikhail Glukhikh 630adb34db [FIR] Don't provide receiver as value in delegated constructor call 2020-03-31 20:28:24 +03:00
Mikhail Glukhikh a377a6fccb [FIR2IR] Handle references to constructors separately 2020-03-31 20:27:40 +03:00
Mikhail Glukhikh 282509b0da [FIR2IR] Provide object receivers for callable references 2020-03-31 20:27:24 +03:00
Ilya Kirillov 51de319cc4 New J2K: fix IOOB exception on inference 2020-03-31 19:35:56 +03:00
Ilya Kirillov 98f2604df0 New J2K: introduce type alias symbol 2020-03-31 19:35:55 +03:00
Ilya Kirillov bc52281208 New J2K: convert Java method reference to Kotlin one on copy-pasting Java code
#KT-34965 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov d6d843aaed New J2K: fix assignment target in ConvertGettersAndSettersToPropertyProcessing
#KT-36190 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov b3e728f4fb New J2K: don't allow open modifier on top-level/private declarations 2020-03-31 19:35:55 +03:00
Ilya Kirillov 4d4aa88534 New J2K: handle spaces in array dimensions declaration
#KT-36891 fixed
2020-03-31 19:35:55 +03:00
Ilya Kirillov 353e884c8f New J2K: do not merge methods if there are vararg parameters present 2020-03-31 19:35:55 +03:00
Ilya Kirillov 4a450ab624 New J2K: do not use unicode symbol in bundle 2020-03-31 19:35:54 +03:00
Ilya Kirillov 78d2aaa021 New J2K: handle null Java type 2020-03-31 19:35:54 +03:00
Vladimir Dolzhenko 113561f5f5 Execute reloadDefinitionsBy on a pooled thread 2020-03-31 17:00:19 +02:00
Vladimir Dolzhenko 9f09e50a28 ApplicationUtils syntax improvements 2020-03-31 17:00:19 +02:00
pyos 23ea2446e0 IDEA: add a couple "navigate to inline function call site" tests 2020-03-31 16:06:57 +02:00
pyos 9d7db101e6 JVM: refactor SMAP stuff some more
Just trying to keep the entropy down.
2020-03-31 16:06:57 +02:00
pyos e98bdc6f8e JVM: preserve call site markers when inlining lambdas
and default functions into their own stubs.

Fixes #KT-35006
2020-03-31 16:06:57 +02:00
pyos 9d21800d8f JVM: fix SMAP range extension logic
If `mapLineNumber` was called in non-monotonic order, e.g. N then N+2
then N+1, the first two calls created a range that spans [N; N+2] but
the third call did not reuse it.
2020-03-31 16:06:57 +02:00
Ilya Gorbunov b4d7dfd02c Advance minimal Gradle version for .gradle.kts tests to 5.0
Kotlin compiler 1.2 bundled in Gradle 4.10 and lower cannot read
binaries produced by 1.4 compiler and thus cannot compile .gradle.kts
scripts that depend on  1.4 Kotlin gradle plugin artifacts.
2020-03-31 16:02:36 +03:00
Ilya Gorbunov bc5605dcdc Mute stepping test, KT-37879 2020-03-31 16:02:34 +03:00
Ilya Gorbunov 4a8dbcccee Advance bootstrap to 1.4.0-dev-5087
Temporary fix kotlin gradle plugin version in buildsrc at 1.4.0-dev-1818, otherwise it causes problems in main buildscripts, when compiled with -dev-5087 (KT-37235).
2020-03-31 16:02:32 +03:00
Ilya Gorbunov 6b11decf52 Enable option -Xno-optimized-callable-references in the whole project
A workaround to reduce dependency on the new stdlib version
of compiler parts used by gradle plugin.

#KT-37435
2020-03-31 16:02:29 +03:00
Mikhail Zarechenskiy 38a719cb22 [NI] Fix trace manipulations for builder inference and ::-expressions
For a class literal Type::class we are resolving Type as a constructor,
 getting all diagnostics (about missing arguments, for example) and then
 just not committing this trace with errors

 #KT-37626 Fixed
2020-03-31 15:50:58 +03:00