Michael Bogdanov
d4df7aaabc
Fix for KT-10659: Debugger: Evaluate Expression and Watches fail for inline function parameter passed by reference
...
#KT-10659 Fixed
2016-01-28 14:23:24 +03:00
Natalia Ukhorskaya
54fa9eff61
Debugger: do not compute classnames for inline functions during stepping
2016-01-28 11:16:44 +03:00
Alexander Udalov
7d880f10ec
Optimize getFqName calls in KotlinBuiltIns
...
Check the simple name first, and only then construct the full FqName, in all
'is*' methods
2016-01-28 03:10:38 +03:00
Alexander Udalov
04026dbe84
Make Array<T>(size, init) a constructor of Array
...
It's not marked as inline, this is why 'crossinline' was added in
jaggedArray.kt/jaggedDeep.kt. Will be fixed in the following commits
2016-01-28 03:10:37 +03:00
Ilya Gorbunov
d49f5b95b0
Fix deprecations in testData
2016-01-27 19:05:19 +03:00
Ilya Gorbunov
744a7a83f7
Cleanup RC deprecations in compiler and plugin.
2016-01-27 18:34:30 +03:00
Yan Zhulanow
32037fdd2e
Do not remove all imports if "Optimize Imports" is executed on a file outside source dirs #KT-9925
2016-01-27 17:17:47 +03:00
Dmitry Petrov
9db3440e72
Fix type inference issues for 'if' and 'when'.
...
Use 'expectedType' (when present) as an explicit type argument for a special construct call.
Unfortunately, this approach can't be used for elvis due to other elvis-related inference hacks.
Fixes KT-10807, KT-10811.
This also affects KT-6189: now we can infer proper type for 'if'.
If type inference for special call failed, and we found no type errors in sub-expressions,
report TYPE_INFERENCE_FAILED_ON_SPECIAL_CONSTRUCT error.
This (and the hack above) fixes KT-10809: code no longer compiles.
2016-01-27 17:07:20 +03:00
Dmitry Jemerov
e3e463ef70
nicer UI for choosing a configurator when multiple options are available
2016-01-27 13:49:45 +01:00
Nikolay Krasko
7c8a5b0b83
Make change signature fix non-applicable for constructors (EA-76554)
2016-01-27 14:00:16 +03:00
Mikhail Glukhikh
d94930149b
Warning for open members in objects
2016-01-26 19:04:17 +03:00
Mikhail Glukhikh
0368631aa3
Source code fix: exposed visibility in object members
2016-01-26 19:04:04 +03:00
Alexey Sedunov
218dd41a08
Move: More accurate visibility analysis
...
#KT-10553 Fixed
2016-01-26 18:19:20 +03:00
Alexey Sedunov
64f6c62d4f
Move: Implement "Move nested class to another class" UI
...
#KT-9027 Fixed
2016-01-26 18:19:16 +03:00
Alexey Sedunov
e943508d87
Move: Implement "Move nested class to upper level" UI
...
#KT-9027 In Progress
2016-01-26 18:19:13 +03:00
Alexey Sedunov
d662b02e95
Move: Nested classes support
...
#KT-9027 In Progress
2016-01-26 18:19:09 +03:00
Yan Zhulanow
0304bd1dc1
More precise diagnostic messages about "operator modifier is not applicable"
2016-01-26 17:21:44 +03:00
Yan Zhulanow
3fa506fd45
"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
2016-01-26 17:21:44 +03:00
Nikolay Krasko
5b6f7486ce
KotlinSetupEnvironmentNotificationProvider now uses indecies so it not DumbAware anymore (EA-78406)
2016-01-26 16:29:56 +03:00
Nikolay Krasko
e7685735bb
KtUnaryExpression.baseExpression may be null (EA-78379)
2016-01-26 16:29:53 +03:00
Nikolay Krasko
06939b11e4
Fix NPE in GotoSuperActionHandler.java (EA-77295)
2016-01-26 14:58:44 +03:00
Natalia Ukhorskaya
b442cf9fec
Debugger: check that virtual machine allows to get bytecodes
2016-01-26 13:36:39 +03:00
Ilya Gorbunov
23080f78f7
Map.getOrPut: treat nulls as missing values.
2016-01-26 11:49:18 +03:00
Natalia Ukhorskaya
25b64b198c
Minor: fix NPE
2016-01-25 12:47:45 +03:00
Natalia Ukhorskaya
ba323098ea
Debugger: fix EE for localvariables inside inline function call
...
#KT-10674 Fixed
2016-01-25 12:47:45 +03:00
Natalia Ukhorskaya
203cab8d1b
Debugger: fix step over for if with inline function call without lambda arguments
2016-01-25 12:47:45 +03:00
Nikolay Krasko
dbc2299cf2
Update test jar during runtime library update (KT-10773)
...
#KT-10773 Fixed
2016-01-25 11:37:56 +03:00
Stanislav Erokhin
f710ba88f8
Minor. Removed TypeParameterDescriptor#getLowerBounds
2016-01-22 22:09:33 +03:00
Denis Zharkov
6c0cd70a22
Introduce PureReifiable annotation
...
It prevents reporting unsafe substitution warning on expressions
like 'arrayOf(arrayOf(""))'
2016-01-22 19:17:22 +03:00
Denis Zharkov
32755a269c
Support annotations on type parameters in stub builder
2016-01-22 19:17:22 +03:00
Denis Zharkov
d87b13931d
Create special type for missing dependencies when resolving annotations
...
#KT-10748 Fixed
2016-01-22 19:17:22 +03:00
Dmitry Jemerov
4846776242
don't show "Kotlin not configured" notification for files outside a source root
2016-01-22 16:42:58 +01:00
Alexey Sedunov
618f9f62f6
Code Insight: "Generate toString" action
...
#KT-10309 Fixed
2016-01-22 15:50:19 +03:00
Alexey Sedunov
77b637e238
Change Signature: Skip Java methods which can't be resolved from Kotlin (such as methods of local classes)
...
#KT-10432 Fixed
2016-01-22 15:50:17 +03:00
Alexey Sedunov
0104bfec86
Add val/var to Constructor Parameter: Fix caret position before starting template
2016-01-22 15:50:16 +03:00
Alexey Sedunov
8da986ff24
Add Initializer Quick-Fix: Place caret at the end of generated initializer
...
#KT-10704 Fixed
2016-01-22 15:50:15 +03:00
Alexey Sedunov
9081f5df52
Introduce Variable: Move caret to the end of declaration when replacing "statement" expression
...
#KT-10663 Fixed
2016-01-22 15:50:14 +03:00
Pavel V. Talanov
16ab4bec34
Try to diagnose NoDescriptorForDeclarationException in completion
2016-01-22 15:32:37 +03:00
Dmitry Petrov
55b7e4bbf0
Ignore special resolved calls for 'when' in PSI unifier.
2016-01-22 10:41:56 +03:00
Dmitry Petrov
a33c840939
Fix Kotlin build after fixing when-related type checking issues.
...
Filed: KT-10752, KT-10755.
2016-01-22 10:41:55 +03:00
Dmitry Petrov
f371e67ce8
PatternMatchingTypingVisitor:
...
rewrite type inference for 'when' using special constructs.
This fixes several type inference issues for 'when':
KT-9929, KT-9972, KT-10439, KT-10463
along with some other diagnostics-related issues.
2016-01-22 10:41:55 +03:00
Ilya Gorbunov
875287574f
Update testData for LoadBuiltinsTest and BuiltInDecompilerTest
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
4d5ec9be3f
Drop identityEquals from builtins, compiler and tests.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
2257fa36ec
Drop deprecations: text and system
...
Fix import in testData
Fix testData: replace removed method.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
c1ad82ff8c
Harden charset-as-string taking function deprecations.
...
Fix usages in compiler.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
25c4453dc5
Cleanup deprecated symbol usages in testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
eefbd72a64
Remove AddStarProjectionsFix for removed javaClass<T> function.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
4f1d2252f0
Make test for replacement, which requires adding import to the package with operator, independent from stdlib.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
85a02d40c6
Drop hidden declarations provided for binary compatibility
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
b97e436a50
Fix deprecated Range and Progression usages in testData
2016-01-22 05:54:38 +03:00