Mikhail Zarechenskiy
88595e1a58
Don't require to override abstract methods in expect class
...
#KT-16099 Fixed
2017-10-11 15:27:50 +03:00
Dmitry Savvinov
2c0ef592e6
Effects: add DSL for declaration of contracts
...
- Introduce DSL for declaration of contracts. Functions and classes in
this DSL do not bear any computational semantics: in fact, they all do
not exist on runtime. Whole work of extracting semantics from such calls
is done by special parts of compiler
- To make distinguishing those declarations more robust and
convenient, introduce internal annotation @ContractsDSL
- Turn off InlineChecker inside contracts DSL. We do this, because some
functions from DSL should take any possible lambda, so we can't write
any type besides 'Function<R>'. However, InlineChecker will complain if
we will pass inlined lambda in such function -- though, this is false
positive because we know that functions from contracts DSL will never be
executed
- Change testData on HierarchyTestWithLib, where new enum from
kotlin.internal changed expected output
==========
Effect System introduction: 7/18
2017-10-11 13:34:54 +03:00
Dmitry Jemerov
c2efdfe243
Add space before 'where' keyword
...
#KT-19213 Fixed
2017-10-11 12:25:53 +02:00
Mikhail Glukhikh
e37bfa13e3
Related to KT-20713: add test for find usages in script
2017-10-10 22:48:42 +03:00
Mikhail Glukhikh
c5cb45794a
Fix CCE in ReplaceAddWithPlusAssignIntention #KT-20183 Fixed
2017-10-10 22:48:39 +03:00
Mikhail Glukhikh
45c9be2945
Fix problem with mutable map in "simplifiable call chain"
...
So #KT-20315 Fixed
2017-10-10 22:48:35 +03:00
Mikhail Glukhikh
8e59d3e379
Handle modifiers correctly in "val to object" #KT-18919 Fixed
2017-10-10 22:48:33 +03:00
Mikhail Glukhikh
0b5b5d8e89
Suggest primitive array type for collection literals in "add type" fix
...
So #KT-18549 Fixed
2017-10-10 22:48:30 +03:00
Nikolay Krasko
6664b7759b
Configure kotlin.stdlib for gradle projects (KT-19207)
...
#KT-19207 Fixed
2017-10-10 16:29:22 +03:00
Nikolay Krasko
023067aaf2
Allow to use folders for gradle configuration tests
2017-10-10 16:29:22 +03:00
Alexey Sedunov
ea8f3dcc65
Go to Implementation: Support suspend functions
2017-10-10 13:15:16 +03:00
Alexey Sedunov
21bf4d3f24
Rename: Suspend function support
2017-10-10 13:15:15 +03:00
Toshiaki Kameyama
c5b7d0f0df
Remove parentheses after deleting the last unused constructor parameter
...
So #KT-16636 Fixed
2017-10-10 11:55:27 +03:00
Mikhail Glukhikh
1bf0424b1c
Set line marker on expect constructor '(' if no constructor keyword
2017-10-10 10:44:51 +03:00
Mikhail Glukhikh
4bfaa46c15
Add correct mapping of module descriptor to implementedDescriptor
...
Now implements dependency is taken into account here
Old commonModuleOrNull() was deleted
Test (JVM + 2xCommon) was added
2017-10-10 10:44:44 +03:00
Mikhail Glukhikh
b5e2fa5f94
Add line marker test for type aliases #KT-20164 Fixed
2017-10-10 10:44:39 +03:00
Mikhail Glukhikh
eec8be2c21
Add line marker test for primary constructors #KT-20254 Fixed
2017-10-10 10:44:38 +03:00
Mikhail Glukhikh
0ebe9d576a
Add line marker test for sealed classes #KT-20043 Fixed
2017-10-10 10:44:36 +03:00
Mikhail Glukhikh
4e56fda439
Introduce isExpect/ActualDeclaration in KotlinLineMarkerProvider
...
Treat every member of expect declaration as expect declaration itself
So #KT-18455 Fixed
2017-10-10 10:44:35 +03:00
Mikhail Glukhikh
ceab148b09
Expect/actual markers: handle secondary constructors correctly
...
So #KT-20309 Fixed
2017-10-10 10:44:33 +03:00
Kirill Rakhman
91c35a6c59
Support listOfNotNull in SimplifiableCallChainInspection #KT-20410 Fixed
2017-10-09 16:38:52 +03:00
Toshiaki Kameyama
ec64a7e422
Insert brackets in "Convert reference to lambda" if necessary
...
So #KT-16394 Fixed
2017-10-06 16:20:45 +03:00
Toshiaki Kameyama
bbb571260b
Fix 'Redundant override' when delegated member hides super type override
...
So #KT-20231 Fixed
2017-10-06 14:58:15 +03:00
Mikhail Glukhikh
8a3fed15f8
Report NO_ACTUAL_FOR_EXPECT etc. on relevant declaration
...
So #KT-20398 Fixed
2017-10-06 10:48:34 +03:00
Mikhail Glukhikh
aff689afba
Allow "create actual" for function even if partially-compatible exists
...
So #KT-20163 Fixed
2017-10-05 15:28:37 +03:00
Mikhail Glukhikh
e8321be380
Handle interface / abstract members correctly in "Create actual" fix
...
So #KT-20243 Fixed
2017-10-05 15:28:33 +03:00
Mikhail Glukhikh
fe786ad7f3
Set primary constructor and its properties actual in "create actual"
...
So #KT-20044 Fixed
2017-10-05 15:28:30 +03:00
Mikhail Glukhikh
d85c2dbe1f
Specify relevant declaration type in "create actual" fix #KT-20325 Fixed
2017-10-05 15:28:28 +03:00
Mikhail Glukhikh
93109c0d0e
Generate actual keyword for secondary constructors #KT-20008 Fixed
2017-10-05 15:28:25 +03:00
Mikhail Glukhikh
1e79d9791d
Generate actual nested classes for actual owner class #KT-19937 Fixed
2017-10-05 15:28:22 +03:00
Mikhail Glukhikh
e47feaf0b8
Add test for KT-20007
2017-10-05 15:28:21 +03:00
Toshiaki Kameyama
e92af08c98
Introduce "Assign to property" quick-fix #KT-17204 Fixed
2017-10-05 14:25:28 +03:00
Mikhail Zarechenskiy
c6a00af2f0
Fix test data after f3344ec
2017-10-05 10:21:26 +03:00
Mikhail Zarechenskiy
4b2fc9a325
Don't offer to remove empty primary constructor of expect class
2017-10-05 00:10:44 +03:00
Nikolay Krasko
0bffd04ef1
Add kotlin.stdlib requirement to module-info on configure (KT-19207)
...
KotlinAddRequiredModuleFix is almost copy ofAddRequiredModuleFix from
the platform but it moves actual fix method to static with less
parameters and checks directive presence before add.
#KT-19207 Fixed
2017-10-03 16:18:53 +03:00
Nikolay Krasko
2634ed15fa
Configure sdk properly in configure Kotlin tests
2017-10-03 16:10:33 +03:00
Nikolay Krasko
4cdd4c04a3
Run configurations with module path for Java 9 named modules (KT-19886)
...
#KT-19886 Fixed
(cherry picked from commit 1e12828)
2017-10-03 16:10:33 +03:00
Mikhail Glukhikh
5c4c77a80a
Determine enclosing element correctly inside base constructor
...
So #KT-17680 Fixed
So #KT-18740 Fixed
So EA-76201 Fixed
2017-10-03 11:05:21 +03:00
Alexey Sedunov
67798d73a1
Minor: Fix multi-module test data
...
This is required since "implements" dependency is now specified
explicitly in the Kotlin facet configuration
2017-10-02 18:14:04 +03:00
Alexey Sedunov
ea99a2b537
Kotlin Facet: Fix deserialization of "implements" dependency
2017-10-02 18:14:04 +03:00
Alexey Sedunov
9afd2d367b
Minor: Fix ReferenceResolveTestGenerated test data
2017-10-02 18:14:04 +03:00
Alexey Sedunov
aabe23d410
Minor: Fix coroutine package name in quick fix tests
2017-10-02 18:14:04 +03:00
Toshiaki Kameyama
2121322665
Fix useless "Remove curly braces" before Chinese character
...
So #KT-20409 Fixed
2017-10-02 17:46:07 +03:00
Denis Zharkov
5b7c766a54
Use Jsr305State.DEFAULT instead of IGNORE as a default value
2017-09-28 15:38:27 +03:00
Mikhail Glukhikh
fa23471397
Add test for KT-19222 to fix behaviour
...
Issue was fixed together with KT-17374
So #KT-19222 Fixed
2017-09-28 15:15:02 +03:00
Mikhail Glukhikh
5687fe6e39
Introduce ModuleDescriptor.findImplementingDescriptor() via facets
...
This function is now used instead of allImplementingCompatibleModules,
thus allowing it to be deleted together with allImplementingModules
So #KT-17369 Fixed
So #KT-17374 Fixed
May fix also some other MPP issues
2017-09-28 15:15:02 +03:00
Mikhail Glukhikh
848a80a266
Add test (with incorrect work yet) for KT-17374
2017-09-28 15:15:01 +03:00
Mikhail Glukhikh
390de737e7
Fix messages in some multi platform highlighting tests
2017-09-28 15:15:01 +03:00
Mikhail Glukhikh
7b5842a088
Fix inspection test
2017-09-28 14:00:56 +03:00
Mikhail Zarechenskiy
8a545f05de
Provide quick fix for migration of single elements in named arguments
...
See more in KT-20171
2017-09-26 14:49:43 +03:00