Alexander Udalov
e73760d4ff
Fix test data for empty LHS vs isInitialized
...
Ignore the "property imported from object" part on JS
2017-10-25 12:10:10 +02:00
Dmitry Petrov
42945d33ee
Use !LANGUAGE directive in tests for enhanced nullability
2017-10-25 12:30:32 +03:00
Dmitry Petrov
706a3698ec
Add box tests for new nullability assertions
2017-10-25 12:30:32 +03:00
Dmitry Petrov
2a7d555be4
Minor: move nullability assertion tests javaInterop/notNullAssertions
2017-10-25 12:30:32 +03:00
Dmitry Petrov
57602c420d
Sanitize declaration return types
...
On JVM, strip @EnhancedNullability annotation from inferred types for
functions, properties, and local variables, so that these annotations
do not "escape" from Kotlin declarations.
2017-10-25 12:30:32 +03:00
Dmitry Petrov
2b924f44d8
Generate assertions for expressions with enhanced nullability
...
If an expression with type annotated with @EnhancedNullability is used
as a function expression body, or property initializer, or variable
initializer, and corresponding type can not contain null,
generate nullability assertions for this expression.
2017-10-25 12:30:32 +03:00
Dmitry Petrov
6c47b4a39c
Language feature for nullability assertions on enhanced nullability
2017-10-25 12:30:32 +03:00
Alexey Tsvetkov
313cd4f7bc
Turn off IC for multiplatform projects by default
...
Multiplatform IC is enabled when a corresponding platform property is enabled
and 'kotlin.incremental.multiplatform' is set to `true`.
See KT-20840
2017-10-25 01:12:34 +03:00
Ilya Chernikov
caca7c67f4
Fix "base" jar and "public" jar tasks archive name conflict
...
fixes KT-20877
2017-10-24 20:28:54 +02:00
Ilya Gorbunov
b88d74d29b
Remove annotation processor example from maven build
...
It is already built with gradle and used only in gradle tests
2017-10-24 20:35:53 +03:00
Ilya Gorbunov
f456fa9697
Adjust gradle jvmargs
...
Remove memory options for gradle daemon and instead give more memory to kotlin compile daemon.
2017-10-24 20:35:50 +03:00
Ilya Gorbunov
97cf09b45a
Do not fail build on TC when some tests fail, just report problem
...
Required to have green builds with failing tests muted.
2017-10-24 20:35:47 +03:00
Ilya Gorbunov
84c0e8dfb4
Enable coroutines in kotlin-stdlib-common
2017-10-24 20:35:43 +03:00
Ilya Gorbunov
40574949c7
Postpone some task configuration to execution phase
2017-10-24 19:59:45 +03:00
Ilya Gorbunov
b1dcab886b
Remove deprecated task
2017-10-24 19:59:45 +03:00
Ilya Gorbunov
25988957f7
Remove duplicated string-to-number conversion tests
...
Actual ones are in StringNumberConversionTest.kt
2017-10-24 19:59:45 +03:00
Vyacheslav Gerasimov
b27334d2a0
Remove GradleProjectImportProvider and GradleProjectOpenProcessor
2017-10-24 19:50:19 +03:00
Nicolay Mitropolsky
1fa5152cb7
UAST: Fix for unsafe cast for class initializer (EA-109918)
2017-10-24 19:39:38 +03:00
Alexander Udalov
1a8be635b9
Use ServiceLoader instead of IntelliJ extensions for DefaultErrorMessages
...
#KT-10473 Fixed
2017-10-24 18:25:38 +02:00
Alexander Udalov
1c6dce3674
Do not use DefaultErrorMessages.Extension as IntelliJ extension in plugins
2017-10-24 18:22:04 +02:00
Alexander Udalov
58631053c7
Fix project scope "IDE" after migration to Gradle build
...
See https://www.jetbrains.com/help/idea/scope-language-syntax-reference.html
2017-10-24 18:22:04 +02:00
Alexey Tsvetkov
e83f1b138b
Perform non-IC build when JS lib is changed
2017-10-24 16:28:57 +03:00
Mikhael Bogdanov
be6474593d
Additionally run android tests with enabled D8
2017-10-24 15:26:21 +02:00
Mikhael Bogdanov
dd24ba6978
Convert CodegenTestsOnAndroidRunner to Kotlin
2017-10-24 15:26:21 +02:00
Mikhael Bogdanov
37300f7486
Rename CodegenTestsOnAndroidRunner.java to CodegenTestsOnAndroidRunner.kt
2017-10-24 15:26:20 +02:00
Mikhael Bogdanov
6f5d459e09
Reorganize build logic in AndroidTestGenerator.kt
2017-10-24 15:26:20 +02:00
Mikhael Bogdanov
e151b8f641
Update Android tests
2017-10-24 15:26:19 +02:00
Dmitry Jemerov
499cfb5772
Show "No SDK configured" notification only in JVM modules
2017-10-24 14:52:12 +02:00
Alexey Sedunov
8a9e28afdc
Kotlin Facet: Ensure that API version <= language version after import
...
#KT-20603 Fixed
2017-10-24 15:43:52 +03:00
Alexey Sedunov
840825704a
Misc: Skip duplicates in navigation tests
2017-10-24 15:43:52 +03:00
Alexey Sedunov
4cc1e22a5a
Misc: Support light-methodless members in overrider search
...
In particular, support line markers for expect-class members
and navigation to expect-class members from corresponding base members
2017-10-24 15:43:51 +03:00
Alexey Sedunov
17abce2811
Misc: Support light-classless classes in inheritors search
...
In particular, support line markers for expect-classes
and navigation to expect-classes from their base class
#KT-20329 Fixed
2017-10-24 15:43:51 +03:00
Alexey Sedunov
87f3d24f9b
Misc: Protect freeArgs with FreezableVar
2017-10-24 15:43:51 +03:00
Alexey Sedunov
fa4e4cbb42
Formatter: Insert new line before/after type alias
...
#KT-20766 Fixed
2017-10-24 15:43:51 +03:00
Dmitry Petrov
f23dfdc0ac
Mark operands of POP2 as don't touch in unused expression elimination
...
Fixes KT-20879.
2017-10-24 15:38:15 +03:00
Dmitry Jemerov
537600b3b3
Add dependency to kotlin-test-annotations-common to new MP projects
...
#KT-20833 Fixed
2017-10-24 14:18:34 +02:00
shiraji
d51fa6d87e
Add description for MoveMemberToTopLevelIntention
2017-10-24 14:33:55 +03:00
Alexander Udalov
bafc75ade4
Fix isInitialized receiver generation for empty LHS
...
#KT-20774 Fixed
2017-10-24 11:26:01 +02:00
Mikhail Zarechenskiy
73b3efd628
Remove LANGUAGE_VERSION directive from blackBox codegen tests
2017-10-24 11:44:02 +03:00
Mikhail Zarechenskiy
7a934d74e5
Support !LANGUAGE directive in codegen tests
...
LANGUAGE_VERSION directive will be removed later, for now it's left for simplicity
2017-10-24 11:44:02 +03:00
Mikhail Glukhikh
1ed8aa1cc5
Drop CheckPartialBodyResolveAction
2017-10-24 10:06:09 +03:00
Mikhail Glukhikh
5a6f22cc95
Make editor in SelfTargetingIntention.invoke nullable
...
This prevents EA-105844 from happening.
Should fix KT-20899.
2017-10-24 10:05:10 +03:00
Dmitry Petrov
68870a16bb
Remove CLI help on 'preserve-class-initialization' mode
...
See https://youtrack.jetbrains.com/issue/KT-19532#comment=27-2492178
2017-10-24 09:36:56 +03:00
Ilya Gorbunov
75c8b787c2
Fix maven tests
...
- Add required extra dependencies to install to local repo before test.
- Remove expected warning about runtime bundled into compiler because it is no more.
- Fix basedir reference in kapt-allopen test.
- Fix reflection tests after deprecated members removal.
2017-10-23 21:23:36 +03:00
Ilya Gorbunov
25feb23cfa
Update maven-invoker-plugin to deal with missing mvn.bat in maven 3.3
2017-10-23 21:23:13 +03:00
Alexander Udalov
f2be34ca1c
Support KClass<*> annotation arguments in serialization/deserialization
...
#KT-11586 Fixed
2017-10-23 19:16:44 +02:00
Mikhail Glukhikh
d0e8f99d60
ResolveElementCache: script can now be analyzable parent
...
So #KT-20096 Fixed
2017-10-23 19:19:04 +03:00
Simon Ogorodnik
cace6624e6
EA-105522, KT-20256: Fix TextRange.<init> "Invalid range specified"
...
Check when caret inside template, and don't try to create invalid
range then
EA-105522 fixed
#KT-20256 fixed
2017-10-23 17:32:39 +03:00
shiraji
31a1fb916a
Implement an intention action to move a companion object member to top level
...
#KT-18828 Fixed
(cherry picked from commit 11f8f8b)
2017-10-23 17:29:28 +03:00
shiraji
7044e46756
Refactor common move member methods
...
(cherry picked from commit 2dd8148)
2017-10-23 17:29:27 +03:00