Dmitry Jemerov
23e13d4043
fix type parameter migration for extension functions
2015-10-12 13:45:44 +02:00
Dmitry Petrov
5d9ee7efee
Java 8 rules for method overrides:
...
- base class method wins against a (default) interface method,
so an abstract base class method should always be implemented
in a derived class;
- interface methods clash regardless of abstract/default
with possibly undefined behavior at run-time,
so a class or interface should always define its own method
for methods inherited from multiple interfaces and not from base class;
- meaningful diagnostics for class inheriting conflicting JVM signatures.
Since no override will happen under Java 8 rules,
ACCIDENTAL_OVERRIDE is misleading for this case;
- update testData.
2015-10-12 14:12:31 +03:00
Mikhail Glukhikh
82c0265cb3
Quick fix for implicit nothing with a test
2015-10-12 13:30:22 +03:00
Dmitry Jemerov
457e40a0b8
fix a few more tests
2015-10-12 11:11:31 +02:00
Dmitry Jemerov
a63d3f5a0f
fix more compilation errors and some tests
2015-10-12 11:11:29 +02:00
Dmitry Jemerov
1523d5bcbf
removing static type assertions work in progress
2015-10-12 11:11:23 +02:00
Alexey Sedunov
ad929a6577
Unit Test Tooling: Implement "Create Test" action
...
#KT-6472 In Progress
2015-10-11 01:13:41 +03:00
Yan Zhulanow
ed5c059cea
Rename unary plus() and minus() to unaryPlus() and unaryMinus()
2015-10-09 22:49:17 +03:00
Yan Zhulanow
1f2b4e20fe
Replace get() and set() to getValue() and setValue() (property delegates)
2015-10-09 22:49:16 +03:00
Mikhail Glukhikh
6914d09297
Old backing field with dollar is now forbidden
2015-10-09 21:06:26 +03:00
Mikhail Glukhikh
5117f744f7
Change to backing field fix is dropped because of deprecated syntax
2015-10-09 21:06:01 +03:00
Dmitry Jemerov
6ca3a9fe9f
quickfix to add 'infix' modifier
2015-10-09 17:43:26 +02:00
Pavel V. Talanov
f4ef9647b1
Idea: add quick fix for replacing usages of deprecated "INSTANCE$" field
2015-10-09 16:25:19 +03:00
Dmitry Jemerov
7e2c2ef678
restore compilation after rebase of dropping external annotations; fix affected tests
2015-10-09 11:52:02 +02:00
Dmitry Jemerov
45d1129dbb
quickfix to move type constraint to 'where' clause
2015-10-08 17:09:58 +02:00
Alexey Sedunov
1a36c3e29a
Quick Fixes: Implement quickfix for missing library
2015-10-08 13:15:15 +03:00
Dmitry Jemerov
1fdf08bec5
quickfix to migrate function type parameter lists to new syntax
2015-10-06 16:20:48 +02:00
Dmitry Jemerov
870b640008
"add operator modifier" fix handles fake overrides
...
#KT-9347 Fixed
2015-10-06 16:12:09 +02:00
Valentin Kipyatkov
a75b3e6cf1
Auto-import popup does not suggest to import non-operator functions when operator required
2015-10-05 15:33:48 +03:00
Valentin Kipyatkov
b03a297ed0
KT-9326 IDE tries to resolve name in qualified this to any class in project/classpath
...
#KT-9326 Fixed
2015-10-05 15:33:47 +03:00
Valentin Kipyatkov
1bb6dae444
Auto-import fix should suggest declarations that cannot be used in this position
...
This also should fix KT-9122 Assertion error when psi modified from IDE
#KT-9122 Fixed
2015-10-05 15:33:46 +03:00
Valentin Kipyatkov
ab5fe60bbe
Corrected quickfix class name in tests
2015-10-05 15:33:45 +03:00
Valentin Kipyatkov
2ae13ed76b
KT-9380 Handle malformed ReplaceWith annotations gracefully
...
#KT-9380 Fixed
2015-10-05 15:33:45 +03:00
Valentin Kipyatkov
836d116786
Checked that import popup now works for callable references
2015-10-03 10:40:52 +03:00
Alexander Udalov
012a2971ff
Quick-fix to add type to LHS of incorrect callable references
2015-10-03 04:37:05 +03:00
Alexey Sedunov
1f6f617546
Create from Usage: Suggest synthetic function classes as extension receivers
2015-10-01 17:35:25 +03:00
Alexey Sedunov
1d83d75a82
Create from Usage: Use function form when rendering FunctionN types
...
#KT-7522 Fixed
2015-10-01 17:35:24 +03:00
Alexey Sedunov
2b354cd4db
Create parameter: Look for containing function if no class is found. Support secondary constructors
...
#KT-9322 Fixed
2015-10-01 17:35:19 +03:00
Alexey Sedunov
aa080bf201
Create from Usage: Forbid for parameters/local variables when reference is not an identifier
...
#KT-9305 Fixed
2015-10-01 17:35:16 +03:00
Zalim Bashorov
9256682cc5
Fix quickfix and tests
2015-10-01 14:57:26 +03:00
Dmitry Jemerov
ee1175d5e5
fix 'operator' modifier inspection
...
#KT-9349 Fixed
2015-09-28 14:35:41 +02:00
Zalim Bashorov
c7c7382b8e
Minor: fix testdata
2015-09-25 21:16:02 +03:00
Dmitry Jemerov
3d0e91065a
quickfix for usages of operators that don't have the proper annotation
2015-09-25 20:00:29 +02:00
Dmitry Jemerov
8b0ccce4f1
code review; add 'operator' also to next() and hasNext(); check toplevel functions
2015-09-25 20:00:28 +02:00
Dmitry Jemerov
e0f8d68a5f
add 'operator' modifier when creating next() and hasNext() from usage
2015-09-25 20:00:28 +02:00
Dmitry Jemerov
41d1cf6083
check return type of contains() and compareTo()
2015-09-25 20:00:26 +02:00
Dmitry Jemerov
3dbb74bf0c
teach 'create from usage' to add 'operator' modifier when necessary
2015-09-25 20:00:26 +02:00
Dmitry Jemerov
bda0bd1de1
quickfix to add 'operator' keyword to operator-like functions
2015-09-25 20:00:19 +02:00
Dmitry Jemerov
61d78e0880
tests for "Add 'const' modifier"
2015-09-25 19:14:54 +02:00
Dmitry Jemerov
48bcc93ec2
revert incorrect testdata changes
2015-09-25 19:14:53 +02:00
Dmitry Jemerov
250456ab4b
add quickfix for NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION
2015-09-25 19:14:52 +02:00
Dmitry Jemerov
32e6a6e3a1
inspection and quickfix to replace usages of deprecated package facades
2015-09-25 18:29:06 +02:00
Dmitry Jemerov
e1acc8744d
"introduce backing property" intention
2015-09-25 18:25:37 +02:00
Dmitry Jemerov
dadef12723
backing field migration fixes
2015-09-25 18:25:36 +02:00
Yan Zhulanow
6db9344659
Fix compiler tests
2015-09-25 19:20:20 +03:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Denis Zharkov
1d90b2e1fe
Get rid of obsolete syntax in quickfixes changing lambda's signature
...
- Do not wrap parameters with '()'
- Do not set return type for them
- Fix existing testData
2015-09-25 08:29:26 +03:00
Denis Zharkov
31d2aa23f5
Remove ChangeType quickfix for lamdas with deprecated syntax
2015-09-25 08:29:26 +03:00
Denis Zharkov
c6377a0664
Drop everything related to lambda syntax deprecation
2015-09-25 08:29:26 +03:00
Stanislav Erokhin
fc9aa87a05
Report diagnostic on import with explicit import class if class was imported earlier.
2015-09-24 14:07:43 +03:00