Commit Graph

63696 Commits

Author SHA1 Message Date
Ilya Gorbunov fde33252cf Present boolean property without value is considered true
For example, -Pbootstrap.local or -Pkotlin.build.proguard
2020-04-02 05:21:10 +03:00
Ilya Gorbunov 1727fcf1a8 Make some build properties extensions in buildSrc
They are used only in main build's .gradle.kts files, so it is more
flexible to define them as extensions - no need to republish
kotlin-build-gradle-plugin when another such property is to be added.
2020-04-02 05:21:10 +03:00
Ilya Gorbunov c046f431d9 Rename KotlinBuildProperties.get private function to getOrNull
Before that Groovy tried to find 'get' when dispatching property access,
succeeded in that, and thus any mistyped missing property
would have resulted in null value instead of exception.
2020-04-02 05:21:10 +03:00
Ilya Gorbunov 2e20fab05f Add bootstrap.teamcity.url parameter to specify bootstrap teamcity server 2020-04-02 05:21:10 +03:00
Ilya Gorbunov 453e91daf2 Advance bootstrap to 1.4.0-dev-5258 2020-04-02 04:43:13 +03:00
Ilya Gorbunov 01b463993b Use SinceKotlin in primitive companion objects for documentation purpose
Also suppress "div by zero" warnings in JS primitive companions.
2020-04-02 04:43:00 +03:00
Ilya Gorbunov a225842f9b Test that known Floats can fit in FloatArray without over/underflow
But some precision loss can still happen in JS.

Relates to KT-24975
2020-04-02 04:04:04 +03:00
Ilya Gorbunov d88d2cb058 Test new Double/Float constants
Split test expectations based on actual support of enforced Float range

KT-29182, KT-13887
2020-04-02 04:04:04 +03:00
Ilya Kirillov 3e6ab65ccc Wizard: place kotlin.code.style to gradle.properties file instead of local.properties
#KT-37923 fixed
2020-04-02 01:25:38 +03:00
Ilya Kirillov db2c2cc8d9 Wizard: fix generated project path & name
#KT-37927 fixed
2020-04-02 01:25:38 +03:00
Ilya Kirillov 00e5e96fe3 Wizard: fix write action scope in IdeaJpsWizardService
#KT-37925 fixed
2020-04-02 01:25:37 +03:00
Dmitry Petrov 24b8495e00 KT-30419 Box inline classes in return types of covariant overrides
Use boxed version of an inline class in return type position for
covariant and generic-specialized overrides.

Also fixes KT-35234 and KT-31585.
2020-04-01 22:59:14 +03:00
Alexander Udalov e44f12d7b0 Minor, unmute passing FIR black box tests 2020-04-01 19:33:45 +02:00
Vladimir Dolzhenko 10df7ee31a Get rid of getInstanceIfNotDisposed
Relates to #EA-216005
2020-04-01 17:17:26 +00:00
Ilya Gorbunov 55a98fc5df Include kotlin-test-annotations-common into core libs list
Otherwise it doesn't get published when executing
coreLibsInstall/coreLibsPublish tasks.
2020-04-01 19:28:27 +03:00
Dmitriy Dolovov 5e1e9876fd IDE: Don't use direct refs on IdePlatformKindResolution EP instances 2020-04-01 23:10:55 +07:00
Dmitriy Dolovov a2e2213d31 Keep KonanTarget.predefinedTargets as Map<String, KonanTarget> 2020-04-01 23:10:47 +07:00
Dmitriy Dolovov 132464fa4f Minor. Rename KotlinLibrary.readSafe() -> KotlinLibrary.safeRead() 2020-04-01 23:10:37 +07:00
Nikolay Krasko b199403c57 201: Revert adding RUN_SLOW_ASSERTIONS enabling in KtUsefulTestCase 2020-04-01 18:03:41 +03:00
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