Abduqodiri Qurbonzoda
3cad1bbb51
Create method Collection.randomOrNull() #KT-35347
2020-01-16 22:25:53 +03:00
Nikolay Krasko
80d5723a07
Advance version to 193.5662.53
2020-01-16 20:37:58 +03:00
Nikolay Krasko
b4ae1645ec
Mute TCServiceMessageOutputStreamHandlerTest for 193 platform (KT-35938)
2020-01-16 20:37:58 +03:00
Nikolay Krasko
fd8ff463bb
JUnit 4 runner for ignoring muted tests
2020-01-16 20:37:58 +03:00
Nikolay Krasko
6963c81b40
Run tests in kotlin-gradle-plugin in repository working dir
...
Unify with other modules and make GradleNodeModuleBuilderTest work under
JPS.
2020-01-16 20:37:57 +03:00
Vyacheslav Gerasimov
9b7e904390
Delete gradle wrapper validation workflow
...
Workflows are not enabled in JetBrains organization yet
2020-01-16 18:28:48 +03:00
Vyacheslav Gerasimov
a0e73bffa0
Build: Add kotlinPluginPublication to idea-gradle-tooling-api
2020-01-16 18:26:20 +03:00
Vladimir Dolzhenko
5730a21e7b
Reworked k2k copy-paste action.
...
Get rid of resolve from copy phase, paste phase performs resolve in bg
#KT-33939 Fixed
2020-01-16 15:59:37 +01:00
Roman Golyshev
9f15c0f4d7
Add commentary about inserting type for lateinit var in completion
...
- Also, use dedicated method to check modifier
2020-01-16 17:38:01 +03:00
Mikhail Zarechenskiy
4f74515508
[NI] Fix CST calculation for covariant type projections
2020-01-16 17:18:20 +03:00
Vladimir Ilmov
082cbae74a
Revert "Flaky ConcurrentModificationException in NewMultiplatformProjectImportingTest.testFileCollectionDependency fixed"
...
This reverts commit af71955fde .
2020-01-16 15:02:14 +01:00
Jonathan Leitschuh
7da26ce705
Add pull_request to list of actions
2020-01-16 16:48:57 +03:00
Jonathan Leitschuh
19e989bc61
Official Gradle Wrapper Validation GitHub Action
...
See: https://github.com/gradle/wrapper-validation-action
2020-01-16 16:48:57 +03:00
pyos
6e6f4d0503
IR: close over the set of captured type parameters
2020-01-16 16:37:40 +03:00
Ilya Gorbunov
e9cea3358d
Do not use libraryJarWithoutIr as runtime output artifact
...
This avoids having both libraryJarWithoutIr and default jar artifact,
which points to the same path as libraryJarWithIr, in the dependent
projects' classpath.
Use libraryJarWithIr instead.
For local builds where libraryJarWithIr doesn't contain any IR, this
should have the same effect.
2020-01-16 16:01:56 +03:00
Ilya Gorbunov
3fabf9b6ad
Add dependency in disabled jar task on custom libraryJarWithIr
...
jar task is disabled, but its artifact is still used through
the runtime configuration in the other projects.
In fact, dependent projects get both
libs/kotlin-stdlib-js-1.3-SNAPSHOT.jar
lib/dist/kotlin-stdlib-js-1.3-SNAPSHOT.jar
in their classpath.
However the former artifact is built with libraryJarWithIr task after
jar task is skipped. This leads to a situation during the parallel build
that a dependent project tries to read that artifact
when libraryJarWithIr task writes it.
This commit adds a dependency edge between the disabled jar and custom
libraryJarWithIr tasks, so that the artifact is ready by
the moment jar task has finished.
2020-01-16 16:01:55 +03:00
Ilya Gorbunov
3d7c7c4656
Add problem zip file name when unable to open it
2020-01-16 16:01:55 +03:00
Ilya Gorbunov
09b1960dd0
Regenerate stdlib sources: update copyright year
2020-01-16 15:57:06 +03:00
Ilya Gorbunov
30bdd463ad
Do not lower SinceKotlin version for unsigned arrays extensions if they already has some
2020-01-16 15:52:35 +03:00
Ilya Gorbunov
9566f329f0
Mute FIR test failures and adjust failing test data due to KT-35948
2020-01-16 15:36:19 +03:00
Ilya Gorbunov
0f6df5971b
Mute tests failing in JS_IR backend due to KT-35944
2020-01-16 15:36:16 +03:00
Ilya Gorbunov
ac7e54f651
Improve terminological consistency in KClass docs
2020-01-16 15:36:13 +03:00
Ilya Gorbunov
71d847841e
Use real kotlin-stdlib jar in addKotlinReflect configuration test
...
The presence of "Add kotlin-reflect.jar..." action depends on whether the API
that requires full kotlin-reflect is actually resolved. Since builtins now
do not contain the entire JVM reflect API, but rather the common one,
we need a real kotlin-stdlib instead of dummy one to have 'KProperty1.getter'
symbol resolved.
2020-01-16 15:36:10 +03:00
Ilya Gorbunov
3a78ab6d40
Do not use qualifiedName property in KClass.cast function, because it's not supported in K/JS
...
Introduce an internal property that returns either qualified or simple name, and use it instead.
2020-01-16 15:36:07 +03:00
Ilya Gorbunov
43e08a5717
Specify some real kotlin version in maven configuration test
...
Now availability of the configuration quick fix depends on
whether the unavailable reflect declaration are actually resolved,
and for that we need a dependency on stdlib.
2020-01-16 15:36:05 +03:00
Ilya Gorbunov
b3ecf84c43
Improve unexpected declaration exception message
2020-01-16 15:36:02 +03:00
Ilya Gorbunov
ac790bea71
Reorganize diagnostics tests with stdlib and reflect
...
DiagnosticsTestWithStdLib now require stdlib only.
Move test data accordingly.
The only test that required kotlin-reflect is transformed into
codegen box test.
2020-01-16 15:35:58 +03:00
Ilya Gorbunov
ec6fdc5d4d
Fix noStdlib cli test
...
Replace 'isExternal' with 'name', since 'name' is still available in builtins and 'isExternal' is only accessible with a proper stdlib dependency.
2020-01-16 15:33:16 +03:00
Ilya Gorbunov
8af43155c3
Remove reflect API not actually supported in K/JS
...
#KT-32186
2020-01-16 15:33:16 +03:00
Ilya Gorbunov
562bac3f6f
Copy JVM reflect declarations to JS
2020-01-16 15:33:16 +03:00
Alexander Udalov
0815ed2cbd
JVM IR: do not load KDeclarationContainer from builtins
...
Like other classes declared in the standard library, construct a mock of
it in JvmSymbols. This is needed to move classes in kotlin.reflect out
from builtins and to the JVM part of the standard library.
2020-01-16 15:33:15 +03:00
Ilya Gorbunov
ea95aabbb0
Optimistically add isInstance and qualifiedName to common KClass
...
Because they are used in common cast and safeCast functions
2020-01-16 15:33:15 +03:00
Ilya Gorbunov
47f78c424d
Commonize KType API
...
Move KTypeProjection, KVariance, KClassifier, KTypeParameter to stdlib-common.
#KT-29748 Fixed
#KT-32855 Fixed
2020-01-16 15:33:15 +03:00
Ilya Gorbunov
d87fb0ece0
Introduce expect KFunction in common
2020-01-16 15:33:14 +03:00
Ilya Gorbunov
427e34fe5a
Do not serialize JVM kotlin.reflect to builtins
...
Serialize common types from kotlin-reflect as builtins instead.
2020-01-16 15:32:29 +03:00
Mikhail Glukhikh
f27611939e
Raw FIR builder: fix situation with explicit type of for parameter
...
Before this commit we omitted for parameter type,
even if it was stated explicitly. This also fixes PSI consistency test
2020-01-16 14:46:50 +03:00
Alexander Udalov
621936e951
Do not generate Throws attribute for delegated members from Kotlin interfaces
...
#KT-31763 Fixed
#KT-35834
2020-01-16 12:43:09 +01:00
Alexander Udalov
79d7335b8d
JVM IR: minor, add toString for FunctionHandleForIrFunction
...
Useful for debugging problems in BridgeLowering.
2020-01-16 12:38:16 +01:00
Alexander Udalov
86996bf546
IR: workaround exceptions in IrElement.dump
...
Fallback to IrElement.render if exception happens in DumpIrTreeVisitor
(due, for example, to invalid IR structure).
2020-01-16 12:38:03 +01:00
Alexander Udalov
c3d5a88e52
Add -Xno-use-ir to compiler modules where JVM IR currently fails
...
This option has no effect on the production code. But in a custom
scenario of a local bootstrap, where the compiler is replaced with the
one where JVM IR backend is enabled by default, this option allows to
switch back to the old backend.
All of these arguments (except the one for compiling experimental
coroutines) are supposed to go away as soon as we fix related problems
in the JVM IR backend.
2020-01-16 12:21:47 +01:00
Vladimir Ilmov
af71955fde
Flaky ConcurrentModificationException in NewMultiplatformProjectImportingTest.testFileCollectionDependency fixed
2020-01-16 11:38:54 +01:00
Pavel Kirpichenkov
fd1305c369
[NI] Refactor OnlyInputType annotation check
...
Hold position consumed during incorporation in Constraint instead of ConstraintPosition.
2020-01-16 12:01:07 +03:00
Pavel Kirpichenkov
0d393e3fd7
[NI] Update filtering of constraints with equal types
...
Make check for synthetic nullability constraint status before skipping
new constraint with nonunique type.
2020-01-16 12:01:06 +03:00
Pavel Kirpichenkov
2896642f94
[NI] Consider synthetic lower nullability constraint non-proper
2020-01-16 12:01:06 +03:00
Sergey Rostov
07041574da
AbstractScriptConfigurationLoadingTest: add asserting messages
2020-01-16 11:45:51 +03:00
Sergey Rostov
40914e79ee
.gralde.kts: optimize getAffectedGradleProjectFiles (EA-220597 fixed)
2020-01-16 11:45:50 +03:00
Denis Zharkov
676c99b933
NI: Fix exception during callable references overload resolution
...
^KT-35847 Fixed
2020-01-16 10:49:49 +03:00
Mikhail Zarechenskiy
588259a034
Add feature that allows references to synthetic properties with warning
...
See KT-35933 for details
2020-01-16 09:37:34 +03:00
Sergey Bogolepov
595362b99f
[kotlinx-metadata-klib] Proper support for enum entries
2020-01-16 11:38:39 +07:00
Sergey Igushkin
ffa2f97d2c
Deprecate 1.2.x MPP Gradle plugins
...
Issue #KT-31570 Fixed
2020-01-16 00:02:47 +03:00