Alexey Sedunov
123b813073
'Replace with infix call' Intention: Disable on calls without explicit receiver
...
#KT-6332 Fixed
2015-12-25 18:50:34 +03:00
Alexey Sedunov
ae636a0d32
Iterate Intention: Add support of destructuring declarations
2015-12-25 18:50:30 +03:00
Alexey Sedunov
1d3054e7a6
Iterate Intention: Filter out functions without 'operator' modifier
2015-12-25 18:50:27 +03:00
Alexey Sedunov
1c74bab1cc
Iterate Intention: Fix detection of extension iterators
...
#KT-8616 Fixed
2015-12-25 18:50:23 +03:00
Alexey Sedunov
ee9389d089
Create from Usage: Strip first parameter of extension function when expected type is non-extension
2015-12-25 18:50:19 +03:00
Michael Bogdanov
b4db23a7b3
Removed 'INSTANCE' field from companions
2015-12-24 13:59:45 +03:00
Michael Bogdanov
2e73559f33
Removed 'INSTANCE$' field generation
2015-12-24 13:59:44 +03:00
Michael Bogdanov
aeb6486473
Deprecated 'INSTANCE$' replaced with 'INSTANCE'
2015-12-24 13:59:43 +03:00
Ilya Gorbunov
de11ed4fc6
Primitive Companion objects do not longer implement IntegerConstants and FloatingPointConstants. All declarations moved inside companions.
...
IntegerConstants and FloatingPointConstants are dropped.
#KT-8897 Fixed
2015-12-24 06:17:03 +03:00
Mikhail Glukhikh
99a32b93fb
Implemented missed checks for local functions #KT-10449 Fixed
...
Relevant code/test fixes
2015-12-23 18:22:32 +03:00
Alexander Udalov
12e921ab15
Minor, add test on annotation in enum companion
2015-12-23 16:45:26 +03:00
Alexander Udalov
f7969621d6
Don't read isStaticInOuter message for fields
...
It's only written for fields of properties of companion objects of classes;
handle that case manually in deserialization
2015-12-23 16:45:26 +03:00
Pavel V. Talanov
6a1ca7b9c9
Fix an exception caused by objects literals in supertype list not considered local
2015-12-23 14:56:27 +03:00
Pavel V. Talanov
99966c17da
Go to (show) implementations: skip light methods that are generated with DELEGATION or DELEGATION_TO_DEFAULT_IMPLS JvmDeclarationOriginKind
...
Add some unrelated tests for fake overrides
2015-12-22 17:30:51 +03:00
Alexander Udalov
7449ad2763
Rename Extension annotation to ExtensionFunctionType
...
The old one is kept temporarily and will be removed later
2015-12-21 20:33:32 +03:00
Andrey Breslav
a7e7d53e2b
Reserve "async* {}", extend the quick-fix
2015-12-21 07:15:37 +03:00
Nikolay Krasko
afc1e24571
Quick fix for deprecated async syntax
2015-12-21 07:15:37 +03:00
Nikolay Krasko
697132561f
Allow to override suppression key for inspections
2015-12-19 14:32:38 +03:00
Nikolay Krasko
8196621be5
Add test for inspections suppression
2015-12-19 14:32:38 +03:00
Nikolay Krasko
aff83087a3
Allow to suppress warnings at file level
2015-12-19 14:32:37 +03:00
Nikolay Krasko
36210f0a27
Allow to suppress kotlin inspections with Suppress() annotation
2015-12-19 14:32:36 +03:00
Stanislav Erokhin
1574dc78df
Synthetic extensions wins against top-level extension.
2015-12-18 22:49:25 +03:00
Sergey Mashkov
e25d31618c
Fix tests
2015-12-18 22:16:04 +03:00
Ilya Gorbunov
03816373b3
Primitive array constructor-like functions with init lambda.
...
#KT-8831
Update testData and resolve ambiguity in newArray test
2015-12-18 17:54:09 +03:00
Stanislav Erokhin
8b5a194dd6
Do not discriminate synthesized candidates.
...
#KT-9965 Fixed
2015-12-18 15:08:19 +03:00
Alexey Sedunov
784b250de8
Change Signature: Fix rendering of unresolved types in overriding members
2015-12-18 15:05:39 +03:00
Alexey Sedunov
fd79145b73
Change Signature: Represent parameter/receiver types using KotlinTypeInfo
2015-12-18 15:05:36 +03:00
Alexey Sedunov
cfe1c44260
Introduce Variable: Add type argument to initializer if they can't be inferred from the context
...
#KT-5466 Fixed
2015-12-18 15:05:27 +03:00
Alexey Sedunov
4e36edb5d6
Inline Variable: Remove invalid imports and perform reference lengthening/shortening when inlining non-local declaration
...
#KT-8884 Fixed
2015-12-18 15:05:23 +03:00
Stanislav Erokhin
7521b89b3e
Resolve unaryPlus as plus with error.
2015-12-17 20:21:01 +03:00
Denis Zharkov
1a6f9b8d1c
Do not build inner type for error classes
...
#KT-10409 Fixed
2015-12-17 19:56:38 +03:00
Denis Zharkov
0d7c8635b3
Refine INSTANCE_ACCESS_BEFORE_SUPER_CALL check
...
- Detect usages of unitialized `this` as extension receiver argument
- Make it work within object literal created before super call
#KT-9120 Fixed
#KT-8289 Fixed
2015-12-17 19:56:38 +03:00
Mikhail Glukhikh
f5989aa4f2
CallableMemberDescriptor.isOverridable / ClassDescriptor.isFinal refactoring
...
Extra JvmField and integer constants tests
2015-12-17 18:11:41 +03:00
Evgeny Gerashchenko
16f482f723
Merge pull request #797 from JetBrains/rr/kt8365
...
KT-8365 Bogus "Receiver never used" warning when receiver is used in invoke() convention call
2015-12-17 17:38:24 +04:00
Natalia Ukhorskaya
d40e9ffc13
Do not convert anonymous object to lambda if its function is recursive
...
#KT-10348 Fixed
2015-12-17 13:39:36 +03:00
Evgeny Gerashchenko
9aa38d99fb
KT-8365 Bogus "Receiver never used" warning when receiver is used in invoke() convention call
...
#KT-8365 fixed
2015-12-17 13:31:43 +03:00
Natalia Ukhorskaya
43476bd773
Do not drop negation if resulting type isn't boolean
2015-12-17 11:11:33 +03:00
Natalia Ukhorskaya
f84b3414c8
Remove outdated test: generic property should have a receiver
2015-12-17 11:11:32 +03:00
Natalia Ukhorskaya
4b1edf7bb0
Intention tests: add directive to skip errors before
2015-12-17 11:11:31 +03:00
Natalia Ukhorskaya
7e6495618b
ChangeVariableMutability: diagnostic can be reported on constructor parameter
...
#KT-10416 Fixed
2015-12-17 11:11:31 +03:00
Natalia Ukhorskaya
fc7c45d4d0
NegatedExpressionWithDemorgansLaw may produce code with error
2015-12-17 11:11:30 +03:00
Natalia Ukhorskaya
7f0065c806
Fix OperatorToFunctionIntention: insert function literal expressions to arguments correctly
2015-12-17 11:11:29 +03:00
Natalia Ukhorskaya
6bfbec8c88
ConvertAssertToIf may produce code with error
...
// TODO: we could generate anonymous function instead of lambda expression when there is a return
2015-12-17 11:11:28 +03:00
Natalia Ukhorskaya
ce3d53d2ee
Intention tests: add operator modifier in some tests
2015-12-17 11:11:27 +03:00
Natalia Ukhorskaya
2c29f6f5ab
ConvertIfWithThrowToAssertIntention: generate assert with lazy argument
2015-12-17 11:11:26 +03:00
Natalia Ukhorskaya
2dc1ba1d62
Intention 'remove explicit lambda parameter' may break code, do not check error in tests for it
2015-12-17 11:11:26 +03:00
Natalia Ukhorskaya
269676ee2e
Intention tests: skip errors check for tests that fix some error
2015-12-17 11:11:25 +03:00
Natalia Ukhorskaya
abd7ed5c70
Fix intention for when: insert '||' instead of ','
2015-12-17 11:11:24 +03:00
Natalia Ukhorskaya
6a3ac66208
Intention tests: add runtime where necessary
2015-12-17 11:11:23 +03:00
Natalia Ukhorskaya
78d737f3f4
Check errors in Intentions tests by default
2015-12-17 11:11:22 +03:00