Igor Yakovlev
ae3f36ebde
Change ExtractDeclarationFromCurrentFileIntention applicability range
...
Fixed #KT-33362
2019-08-19 13:28:23 +03:00
Yanis Batura
e9e3df23fc
Fix typos and improve grammar in stdlib readmes ( #2527 )
...
* Fix typos in the main ReadMe.md
* Fix typos in the stdlib samples ReadMe.md
Co-Authored-By: ilya-g <ilya.gorbunov@jetbrains.com >
2019-08-16 19:56:56 +03:00
Igor Chevdar
ad8bcda99e
[IR] Merged K/N inliner with the common one
2019-08-16 18:32:19 +03:00
Vyacheslav Gerasimov
32153c26a8
Build: Rewrite upload_plugins.gradle in Kotlin
2019-08-16 15:42:18 +03:00
Vyacheslav Gerasimov
af2cd36c3d
Build: Rename upload_plugins.gradle -> kts
2019-08-16 15:42:18 +03:00
Ilya Gorbunov
fba22606e6
Introduce erroneous operators ClockMark.minus/compareTo(ClockMark)
...
To provide a better diagnostic message on their misuse.
2019-08-16 15:29:17 +03:00
Ilya Gorbunov
ac07cb686b
Change status of ExperimentalTime API to a more risky one
2019-08-16 15:29:17 +03:00
Ilya Gorbunov
a985402507
Introduce ClockMark.hasPassedNow, hasNotPassedNow functions
...
Makes it more clear to use them than comparing elapsed with Duration.ZERO.
2019-08-16 15:29:16 +03:00
Ilya Gorbunov
44195d436e
Rename: Clock.markNow, ClockMark.elapsedNow
...
Add "Now" suffix to the names of functions that depend on the current
time moment.
2019-08-16 15:29:16 +03:00
Ilya Gorbunov
a493d46a6e
Make effectively private properties actually private to avoid accessors
2019-08-16 15:29:16 +03:00
Ilya Gorbunov
f889d25287
Introduce TestClock.plusAssign(Duration) and hide implementation details
...
TestClock.plusAssign(Duration) is for advancing TestClock time.
Hide reading value, do not allow to provide initial reading,
fix clock unit to nanoseconds at construction time.
2019-08-16 15:28:45 +03:00
Ilya Gorbunov
4de9361c37
Introduce Duration.isPositive method
2019-08-16 15:25:57 +03:00
Ilya Kirillov
4befca95d6
Add an ability to switch between old and new J2K via settings window
...
Before that it was possible to do only via registry
#KT-33371 fixed
2019-08-16 09:37:05 +03:00
Shagen Ogandzhanian
3b8da0afe4
Update dukat dependency to 0.0.16
2019-08-16 06:29:11 +03:00
Igor Yakovlev
1aa8e28dd8
Add JvmOverloads to KtLightClassImpl
...
Added @JvmOverloads annotation to primary constructor for binary compatibility issues
2019-08-15 15:49:14 +03:00
Alexey Tsvetkov
8e6a80bed7
Add test logs specific for IC with JS IR
...
Incremental inline will be handled during lowerings,
after all klibs are generated
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
12c209d360
Do not compare output for IC with JS IR BE
...
Temporary measure until output could be updated incrementally
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
3366ac4b18
Save incremental data with KLIB compiler
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
fc49510049
Add tests for IC with JS IR BE
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
9572800ef7
Add missing dependency
2019-08-15 15:11:52 +03:00
Stanislav Erokhin
b5a407371c
Update the year in LICENSE.txt
2019-08-15 13:31:09 +03:00
Mikhail Zarechenskiy
d59b910403
Add tests for obsolete issues
...
#KT-32207 Obsolete
#KT-32836 Obsolete
#KT-32949 Obsolete
#KT-9384 Obsolete
2019-08-15 13:01:39 +03:00
Mikhail Zarechenskiy
1969ad6e9d
[NI] Take into account use-site variance for constraint from LHS of CR
...
#KT-32851 Fixed
2019-08-15 13:01:38 +03:00
Mikhail Zarechenskiy
0620762b97
Enable new inference explicitly for MPP tests with type refinement
2019-08-15 12:50:19 +03:00
Mikhail Zarechenskiy
735e1ecec1
Disable new inference for IDE analysis by default in releases
2019-08-15 12:50:09 +03:00
Mikhail Zarechenskiy
69942681a3
Refactoring: move versioning.kt file to idea-analysis module
2019-08-15 12:49:54 +03:00
Mikhail Zarechenskiy
50e7ff4097
Refactoring: move isSnapshot function closer to similar ones
2019-08-15 12:49:53 +03:00
Dmitry Gridin
2c0d6ab1a5
[Compatibility] Restore GradleBuildScriptManipulator.addKotlinLibraryToModuleBuildScript(scope, libraryDescriptor)
...
#KT-33336 Fixed
2019-08-15 15:54:12 +07:00
Abduqodiri Qurbonzoda
63895483fd
Fix take method from iterating one extra element (KT-32024)
2019-08-15 01:01:36 +03:00
Abduqodiri Qurbonzoda
01a613dca4
Add tests for floating-point to integral conversion
2019-08-15 00:57:27 +03:00
Abduqodiri Qurbonzoda
432828a2db
Clarify floating-point to integral conversion rounding behaviour
2019-08-15 00:57:27 +03:00
Igor Yakovlev
fd5bf33861
Removed asserts for mirror files for java stubs on kt files
...
The behavior of this part of code is following:
1) We wrap the kotlin light class to the object that wraps the kt files into compiled (!) cls stub (notice, that most of the time it is a single file wrapper)
2) Platform wishes to get the mirror psi of this "compiled" stub work with text of it.
3) Platform request mirror element that asserted to be ok ONLY for multifiles stub.
4) It leads to EA-209577
There is no idea why so, but the exception is high-rated, so this assertion was deleted.
Fixed EA-209577
2019-08-14 20:12:55 +03:00
Vyacheslav Gerasimov
8cfdd140bb
Upgrade plugin-repository-rest-client & use token auth
...
#KT-33338
2019-08-14 19:10:43 +03:00
Georgy Bronnikov
20351b7c1b
IR: correct type for a null const argument
2019-08-14 18:26:09 +03:00
Roman Golyshev
e915bc2a69
fix expected output for when statement in scratch files
...
- the behaviour changed due to KT-33127 fixing
2019-08-14 15:35:38 +03:00
Roman Golyshev
1a0edd37ef
KT-31295: fix issue with NewKotlinScriptAction incorrect identity
...
- this problem leads to the duplication of the `New Kotlin Script` action in the drop-down menu
- ^KT-31295 Fixed
2019-08-14 15:35:38 +03:00
Dmitry Petrov
986654b709
psi2ir: fix unsubstituted type parameters around SAM conversions
...
Preserve type substitution:
- when obtaining function type for SAM type;
- when generating SAM conversions for SAM adapter arguments;
- for "original" method corresponding to a SAM adapter.
2019-08-14 14:18:42 +03:00
Alexander Udalov
6b208f7c9c
JVM IR: support LanguageFeature.UseGetterNameForPropertyAnnotationsMethodOnJvm
2019-08-14 12:34:57 +02:00
Ivan Gavrilovic
0a26742501
Run KAPT non-incrementally if annotation processor classpath changes
...
Annotation processor classpath for a KAPT run is recorded, and the current
run is compared against the previous one. If those differ, KAPT should
run non-incrementally.
Test: KaptIncrementalWithIsolatingApt.testChangingAnnotationProcessorClasspath
2019-08-14 18:05:04 +09:00
Ivan Gavrilovic
2412b5f992
Delete output when unable to run KAPT incrementally
...
When comparing previous and current classpath snapshots, and it is not
possible to compute the types that changed, make sure to delete the outputs
before invoking KAPT.
Test: KaptIncrementalWithAggregatingApt.testIncompatibleClasspathChanges
2019-08-14 18:05:04 +09:00
Dmitry Petrov
e4f9314f94
Use ISE instead of NPE in serialization
2019-08-14 11:16:11 +03:00
Dmitry Petrov
a9c961931c
JS_IR: Support 'CHECK_NOT_NULL' intrinsic
2019-08-14 11:16:11 +03:00
Dmitry Petrov
7d49b72b79
JVM_IR: Support 'CHECK_NOT_NULL' intrinsic
...
TODO: migrate to changes related to KT-22275
2019-08-14 11:16:10 +03:00
Dmitry Petrov
7170439517
IR: '!!' is generated as 'CHECK_NOT_NULL' intrinsic
...
```
fun <T : Any> CHECK_NOT_NULL(x: T?): x =
if (x != null) x else throw NullPointerException(...)
```
This allows to compile both Kotlin/JVM and Kotlin/JS effectively.
2019-08-14 11:16:10 +03:00
Georgy Bronnikov
b9db4148cc
Check whether test is ignored before reporting failure
2019-08-13 19:37:11 +03:00
Vyacheslav Gerasimov
0089de7f7f
Build: Workaround dependency cycle in kotlinCompilerPluginClasspath
...
When bootstrap version is less than from current version dependencies
of `kotlin-scripting-compiler-embeddable` are resolved into projects
which leads to circular dependencies
#KT-33287
2019-08-13 18:03:04 +03:00
Mikhael Bogdanov
8ff081a596
Don't trigger 'testJvm6ServerRuntime' initialization during configuration phase
2019-08-13 16:35:58 +02:00
Ilya Chernikov
19ce279611
Fix script config saving to file attributes
...
also make reading from file attribute more robust
2019-08-13 15:40:09 +02:00
Ilya Matveev
949bb9d150
IR: Get rid of descriptors in tailrec calls collection
...
Issue #KT-33279 fixed
2019-08-13 19:56:46 +07:00
Ilya Matveev
cafe2cdb12
IR: Fix fake-override resolution for fields
...
Earlier we used a result of a corresponding getter resolution to
obtain a fake overridden field. This approach is incorrect because
the getter resolved may not contain a backing field. This patch
fixes the issue by using the overriddenSymbols property of an
IrField directly.
Issue #KT-33034 fixed
2019-08-13 19:56:45 +07:00