Dmitry Gridin
a72cdeabb4
fix testData
...
^KT-40861
2020-10-27 18:58:48 +07:00
Alexander Dudinsky
0e7e657657
Migrate MultiModuleLineMarkerTest to the new CodeMetaInfo test infrastructure
2020-10-27 12:31:45 +03:00
Alexander Dudinsky
84d24e5b76
Migrate MultiplatformAnalysisTest to new test runner
2020-10-27 12:23:50 +03:00
Toshiaki Kameyama
5e9333773c
Remove explicit type arguments: don't report when type argument has annotations
...
#KT-40985 Fixed
2020-10-27 15:44:44 +07:00
Toshiaki Kameyama
ce407471ec
Convert to secondary constructor: suggest on class name
...
#KT-40861 Fixed
2020-10-27 14:05:28 +07:00
Toshiaki Kameyama
752f6d8f72
Elvis -> if intention: don't introduce new variable when RHS type is Nothing
2020-10-26 20:57:16 +07:00
Toshiaki Kameyama
f9f8fd055b
Convert receiver to parameter: place value argument list after type argument list
...
#KT-41499 Fixed
2020-10-26 20:47:35 +07:00
Yan Zhulanow
c07f25fa44
Revert "FoldInitializerAndIfToElvisInspection: don't add explicit type if var is used as non-nullable"
...
This reverts commit bb7d4c22
2020-10-24 00:22:41 +09:00
Yan Zhulanow
87574dddd9
Revert "ReplaceWith: suggest for "invoke" extension"
...
This reverts commit be194c34
2020-10-24 00:22:41 +09:00
Yan Zhulanow
04457e92d0
Revert ""Put/Join arguments/parameters" intention: don't suggest on nested argument list"
...
This reverts commit 4a328981
2020-10-24 00:22:41 +09:00
Yan Zhulanow
3321ce6325
Revert ""Code Cleanup": don't remove deprecated imports when file has @file:Suppress("DEPRECATION") annotation"
...
This reverts commit cf5a6274
2020-10-24 00:22:41 +09:00
Yan Zhulanow
9320637efe
Revert "Redundant companion reference: do not report 'values/valueOf' function in enum"
...
This reverts commit 55d55446
2020-10-24 00:22:40 +09:00
Yan Zhulanow
383190f25e
Revert "Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function"
...
This reverts commit 73e319ca
2020-10-24 00:22:40 +09:00
Yan Zhulanow
0ae21a157f
Revert ""Change to return with label" quick fix: apply for type mismatch"
...
This reverts commit f76e9886
2020-10-24 00:22:39 +09:00
Yan Zhulanow
b18de1e3ff
Revert "Provide quickfix for specifying type of variable initialized with null"
...
This reverts commit cdf7f46c
2020-10-24 00:22:39 +09:00
Yan Zhulanow
4327bc4ac3
Revert "KT-23394: Add a test with a property"
...
This reverts commit f2dc132d
2020-10-24 00:22:38 +09:00
Yan Zhulanow
c4a48598c0
Revert ""Add parameter to function" for TYPE_MISMATCH: fix it works correctly for extension function"
...
This reverts commit 03e725d5
2020-10-24 00:22:38 +09:00
Yan Zhulanow
16dbf7ba74
Revert "Convert to range check: don't report it if recursive call will be created"
...
This reverts commit 73184884
2020-10-24 00:22:38 +09:00
Yan Zhulanow
d735637f1e
Revert "RemoveBracesIntention: add new line for long expression"
...
This reverts commit f4b9c477
2020-10-24 00:22:37 +09:00
Yan Zhulanow
f615ed2f26
Revert ""Use destructuring declaration": fix it works correctly if variable name is shadowed"
...
This reverts commit d61158a1
2020-10-24 00:22:37 +09:00
Yan Zhulanow
ab70cc35ea
Revert "Add quick fix for 'JAVA_CLASS_ON_COMPANION'"
...
This reverts commit 15a615d6
2020-10-24 00:22:37 +09:00
Yan Zhulanow
19f518c037
Revert "IfThenToSafeAccessInspection: fix it works correctly for variable/operator call"
...
This reverts commit 5095caee
2020-10-24 00:22:36 +09:00
Toshiaki Kameyama
5095caee50
IfThenToSafeAccessInspection: fix it works correctly for variable/operator call
...
#KT-30513 Fixed
#KT-17071 Fixed
2020-10-23 15:46:54 +09:00
Toshiaki Kameyama
15a615d63b
Add quick fix for 'JAVA_CLASS_ON_COMPANION'
...
#KT-29264 Fixed
2020-10-23 15:46:53 +09:00
Toshiaki Kameyama
d61158a176
"Use destructuring declaration": fix it works correctly if variable name is shadowed
...
#KT-30601 Fixed
#KT-20570 Fixed
2020-10-23 15:46:53 +09:00
Toshiaki Kameyama
f4b9c4777f
RemoveBracesIntention: add new line for long expression
...
#KT-30523 Fixed
2020-10-23 15:46:52 +09:00
Toshiaki Kameyama
731848849e
Convert to range check: don't report it if recursive call will be created
...
#KT-39182 Fixed
2020-10-23 15:46:52 +09:00
Toshiaki Kameyama
03e725d5da
"Add parameter to function" for TYPE_MISMATCH: fix it works correctly for extension function
...
#KT-39557
2020-10-23 15:46:52 +09:00
Yan Zhulanow
f2dc132d5d
KT-23394: Add a test with a property
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
cdf7f46ce1
Provide quickfix for specifying type of variable initialized with null
...
#KT-23394 Fixed
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
f76e98868c
"Change to return with label" quick fix: apply for type mismatch
...
#KT-32280 Fixed
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
73e319ca7a
Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function
...
#KT-34715 Fixed
2020-10-23 15:46:50 +09:00
Toshiaki Kameyama
55d55446c8
Redundant companion reference: do not report 'values/valueOf' function in enum
...
#KT-34285 Fixed
2020-10-23 15:46:50 +09:00
Toshiaki Kameyama
cf5a6274e2
"Code Cleanup": don't remove deprecated imports when file has @file:Suppress("DEPRECATION") annotation
...
#KT-33594 Fixed
2020-10-23 15:46:49 +09:00
Toshiaki Kameyama
4a328981c6
"Put/Join arguments/parameters" intention: don't suggest on nested argument list
...
#KT-31020 Fixed
2020-10-23 15:46:49 +09:00
Toshiaki Kameyama
be194c3460
ReplaceWith: suggest for "invoke" extension
...
#KT-8597 Fixed
2020-10-23 15:46:49 +09:00
Toshiaki Kameyama
bb7d4c224f
FoldInitializerAndIfToElvisInspection: don't add explicit type if var is used as non-nullable
...
#KT-38349 Fixed
2020-10-23 15:46:48 +09:00
Victor Petukhov
84129098cb
Add equality constraints without subtyping
...
^KT-42195 Fixed
^KT-41741 Fixed
2020-10-21 21:23:13 +03:00
Dmitriy Novozhilov
800bfe2cdb
[TEST] Update testdata broken in c2d3a252
2020-10-21 12:49:45 +03:00
Dmitriy Novozhilov
c2d3a252a8
Mute very strange failing of FIR find usages test
2020-10-21 11:53:42 +03:00
Dmitriy Novozhilov
0484ab8cca
Don't unwrap captured types in IDE descriptors renderers
...
#KT-42263 Fixed
2020-10-21 11:53:42 +03:00
Dmitriy Novozhilov
5e406e8803
[FIR-IDE] Unmute passing test
2020-10-16 15:24:58 +03:00
Ilya Kirillov
1bb2eefcaa
Fix find usages test testdata adding FIR_COMPARISON directive
2020-10-16 14:54:16 +03:00
Ilya Kirillov
5c798d4e13
FIR IDE: fix test data in fir-ide module
2020-10-14 22:11:10 +03:00
Ilya Kirillov
2f093e76b0
FIR IDE: render resolve phase for lazy resolve tests
2020-10-14 22:11:08 +03:00
Dmitry Gridin
23beaa5883
[formatter] add tests for line indent after properties
...
^KT-42560
2020-10-09 20:03:48 +07:00
Dmitry Gridin
434139d986
Revert "Add indent before accessor for extension property (KT-33131)"
...
This reverts commit ab34f8c7
^KT-42560 Fixed
2020-10-09 19:44:50 +07:00
Dmitry Savvinov
f50851a982
Fix testdata after migrating to NewKotlinTypeCheckerImpl in OverrideResolver
...
- In kt10409 both 'pipe'-declarations contain error type.
NewKotlinTypeChecker in OverrideResolver considers error types as equal,
thus they are matched as bound declarations, thus 'IterablePipeline'
isn't considered to contain abstract member, thus no suggestion to add
abstract modifier.
Because initially test was covering purely technical issue of working
with error types, instead of removing it completely the additional
abstract member has been added
- in kt10808 we don't add explicit type anymore because
'noTypeInference' is false, because both expected type and actual type
are error-types, and KotlinIntroduceVariableHandler explicitly uses type
checker with 'errorTypesEqualToAnything=false'.
Also, this change might be ultimately seen as small improvement, because
if one extracts something with error type, they would certainly prefer
it to have a proper type as soon as errors are resolved (i.e. additional
code/imports written), rather than having a useless Any-type.
2020-10-09 13:44:06 +03:00
Dmitry Savvinov
01d6181050
Add test on overriding declaration with a composite type with expect declaration
2020-10-09 13:44:06 +03:00
Dmitry Savvinov
ac63d8b3bf
Unify code for checking return type on override for fun/property
...
This fixes issues with the refinement of property' return type because
for functions' return type we already perform refinement properly
2020-10-09 13:44:05 +03:00