Abduqodiri Qurbonzoda
4e820edd1f
Promote randomOrNull, reduceOrNull, scan to stable
2020-06-07 10:05:38 +03:00
Abduqodiri Qurbonzoda
094dbf4c2d
Remove experimental status from Array.associateWith
2020-06-07 10:05:36 +03:00
Vladimir Ilmov
db0788c68f
(LightClass) KotlinShortNamesCacheTest fix for methods, referenced from companions and classes
2020-06-06 23:48:15 +02:00
Vladimir Ilmov
8f00344191
(UnusedSymbolInspection) optimized path for data-classes
2020-06-06 23:48:15 +02:00
Vladimir Dolzhenko
0f73cdeccb
Add ability to skip stats for performance tests if there is a custom stats name
2020-06-06 22:02:30 +02:00
Anton Bannykh
bd2a0563ad
JS: fix explicit cross-module SAM constructor calls
2020-06-06 13:20:37 +03:00
Ilya Muradyan
489290263f
Add info about the end of range in scripting REPL compiler messages
2020-06-05 21:58:28 +02:00
Ilya Chernikov
5e33612238
Extract interface from CompilerMessageLocation to ease extension
...
The CompilerMessageLocation is an implicit part of the binary daemon
protocol so changing it breaks compatibility with older daemons.
This change allows to extend location for non-daemon uses without
breaking the binary protocol.
2020-06-05 21:58:27 +02:00
Ilmir Usmanov
f1906bc966
Minor. Update test
2020-06-05 21:55:34 +02:00
Ilmir Usmanov
f0006f2405
Minor. Add regression test
...
#KT-39374 Fixed
2020-06-05 21:30:24 +02:00
Andrei Klunnyi
a3c881da59
KT-38027 Support Code Vision feature in Kotlin // experimental status
...
Feature received "experimental" status due to the low performance.
The root cause is slow find-usages functionality the feature is based
on. Once the later is improved Code-Vision should be revisited.
Previous commit of KT-38027 series contains production ready state.
To launch performance check again one needs to enable Code Vision in
AbstractPerformanceProjectsTest.setUp() with the following fun:
private fun enabledCodeVision() {
val codeVisionProvider = KotlinCodeVisionProvider()
val settings = codeVisionProvider.createSettings().apply {
showUsages = true
showInheritors = true
}
InlayHintsSettings.instance().storeSettings(codeVisionProvider.key,
KotlinLanguage.INSTANCE, settings)
}
2020-06-05 19:15:38 +02:00
Andrei Klunnyi
b08f501aac
KT-38027 Support Code Vision feature in Kotlin
2020-06-05 19:15:34 +02:00
Roman Golyshev
4c8f9e4e06
KT-39311 Fix fix.change.package.family bundle message
...
- ^KT-39311 Fixed
2020-06-05 19:37:35 +03:00
Svyatoslav Scherbina
46caf27e70
Add "Remove annotation" quickfix for @Throws override mismatch
2020-06-05 19:07:56 +03:00
Svyatoslav Scherbina
6461c1b4f1
Add "Remove annotation" quickfix for empty @Throws
2020-06-05 19:07:54 +03:00
Svyatoslav Scherbina
b7a08494ae
Add quickfix for adding CancellableException to @Throws suspend fun
2020-06-05 19:07:52 +03:00
Svyatoslav Scherbina
290a824107
Add basic support for Native in idea/testdata/multiModuleQuickFix
2020-06-05 19:07:50 +03:00
Abduqodiri Qurbonzoda
46297645a4
Promote String <-> utf8 and CharArray conversions to stable
2020-06-05 18:41:06 +03:00
simon.ogorodnik
ab02381a83
[FIR] Make overriding generic callables independent of TP bounds order
2020-06-05 17:46:35 +03:00
simon.ogorodnik
2287435740
[FIR] KT-39033: Fix generic property override detection
...
#KT-39033 Fixed
2020-06-05 17:46:35 +03:00
Toshiaki Kameyama
e4a1c8dcef
Anonymous function to lambda: add lambda parameter if type parameter is used, even if parameter is unused
...
#KT-39393 Fixed
2020-06-05 17:32:35 +03:00
Roman Artemev
311b2d7969
[PLUGIN API] Make context provide information about target platform
2020-06-05 17:14:33 +03:00
Jinseong Jeon
89c87f941f
FIR: consider the absence of type arguments when constructing GetClassCall type
2020-06-05 17:00:17 +03:00
Mikhail Zarechenskiy
a086d9f7df
Update forgotten FIR test
2020-06-05 16:30:09 +03:00
Mikhail Zarechenskiy
6c5806f971
Add test for obsolete issue
...
#KT-38161 Obsolete
2020-06-05 16:30:08 +03:00
Roman Golyshev
f9b3daabd1
Change testData for ShortenRefsTestGenerated to not use sql package
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
- Test in `ShortenRefsTestGenerated` do not fail, but they are working
for the wrong reason (they do not shorten unresolved references)
2020-06-05 16:03:51 +03:00
Roman Golyshev
7d662bf5d1
Change testData for IntentionsTestGenerated to avoid using javax and sql packages
...
- Those packages are missing in the mockJdk 1.8 in intellij repository,
and it leads to those tests failing in kotlin-ide repository
2020-06-05 16:03:51 +03:00
Mikhail Zarechenskiy
22b558110d
Don't apply Unit-conversion for expressions that return Nothing type
2020-06-05 15:59:31 +03:00
Vladimir Ilmov
3634cbe3cb
(LightClasses) resolve of annotations fast-path
2020-06-05 13:27:10 +02:00
Vladimir Ilmov
991f12bd73
(LightClasses) while looking for accessors we expect them to be taken from single class
2020-06-05 13:27:09 +02:00
Vladimir Ilmov
c0144d2161
(LightClasses) minor improvement in annotation order check
2020-06-05 13:27:09 +02:00
Dmitry Petrov
4e7901b807
Bootstrap: 1.4.20-dev-117
2020-06-05 14:12:13 +03:00
Mikhail Zarechenskiy
fb812301b2
Add test to preserve behaviour
...
It's important to have ambiguity in these cases to introduce overload
resolution by suspend-modifier without breaking changes in future
Relates to #KT-23610
2020-06-05 14:07:08 +03:00
Mikhail Zarechenskiy
e72401c5f4
Don't allow coercing receivers from signed to unsigned constants
2020-06-05 13:24:22 +03:00
Mikhail Zarechenskiy
bfa648972f
Introduce call checker for Unit-conversions
2020-06-05 13:24:21 +03:00
Mikhail Zarechenskiy
6b0a803d14
Allow suspend-conversion for callable references as part of adaptation
2020-06-05 13:24:21 +03:00
Mikhail Zarechenskiy
6b58be377e
Fix chained conversions for subtypes of functional types
2020-06-05 13:24:20 +03:00
Mikhail Zarechenskiy
71cbe97688
Introduce Unit-conversions for simple arguments
2020-06-05 13:24:20 +03:00
Mikhail Zarechenskiy
f08a45f2d4
Refactoring: rename files to avoid "util" suffixes
2020-06-05 13:24:19 +03:00
Mikhail Zarechenskiy
a4af833d55
Narrow down the range for compatibility warning to callee expression
2020-06-05 13:24:19 +03:00
Mikhail Zarechenskiy
4bd622c1c5
Refactoring: rename method to make it more specific
2020-06-05 13:24:18 +03:00
Mikhail Zarechenskiy
718f23b34f
Compatibility warning for references to companion via name (KT-13934)
2020-06-05 13:24:18 +03:00
Dmitry Gridin
3fdf048e51
Regenerate Serialization* tests
2020-06-05 17:13:28 +07:00
Pavel Kirpichenkov
8ca5d3b6f9
Update library to source analysis mode configuration
...
Persist analysis flag in the same xml where anchor mapping reside instead
of using properties. This makes it possible to save config in VCS.
#KT-24309 In Progress
2020-06-05 11:14:02 +03:00
Pavel Kirpichenkov
8ed4424e3e
Clean up API of AbstractResolverForProject
...
Resolution anchors are IDE-specific.
Creating dedicated methods for them in AbstractResolverForProject leads to meaningless
implementation in non-IDE resolvers. Now this method is implemented only
for IDE resolver and accessed through JvmPlatformParameters.
#KT-24309 In Progress
2020-06-05 11:14:01 +03:00
Ilya Goncharov
80a310540e
[Gradle, JS]Remove failed on variant aware resolution tests on kotlin2js
...
Because kotlin2js is deprecated, it is not actual to support tests which are failed because changes in Gradle.
Seems kotlin2js doesn't and didn't and work with Gradle > 5.3
2020-06-05 10:50:08 +03:00
Dmitriy Novozhilov
ee3beea327
[FIR] Cache files with plugin annotations
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
6c5181d8ce
[FIR-PLUGIN] Add status transformer for default visibility
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
1f80f35ce6
[FIR] Don't cache importing scopes while resolving plugin's annotations
2020-06-05 10:34:01 +03:00
Dmitriy Novozhilov
1ffe438fa1
[FIR-PLUGIN] Update AllOpenStatusTransformer according to previous commit
2020-06-05 10:34:00 +03:00