Alexander Udalov
a6846b3967
Insert KProperty<*> when creating property delegate methods in IDE
2015-10-14 20:45:26 +03:00
Mikhail Glukhikh
f8a356747e
Stdlib rename: 'name' and 'ordinal' are now properties in Enum, same name functions are deprecated
2015-10-14 20:40:13 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Yan Zhulanow
528482f625
Deprecated conventions (get -> getValue, plus -> unaryPlus) quickfix
2015-10-14 19:10:36 +03:00
Yan Zhulanow
f9e89596fd
Add 'operator' modifier to stdlib property Delegate functions
2015-10-14 19:10:36 +03:00
Michael Nedzelsky
7f0fbb4577
fix tests for quoted names
2015-10-14 16:57:00 +03:00
Pavel V. Talanov
d603142cc6
Provide inspection and quickfixes for usages of static fields which will be no longer accessible in future versions
...
For this inspection three kinds of fixes are potentially available:
- Add 'const' modifier to kotlin property
- Add '@JvmField' annotation to kotlin property
- Change field reference to getter invocation
In case user chooses to 'cleanup code', these fixes are prioritized in this order
2015-10-14 14:42:26 +03:00
Pavel V. Talanov
47cca7db1f
Test data: adjust test data after prohibiting properties with typeparameters not used in receiver
2015-10-14 13:42:13 +03:00
Yan Zhulanow
bc3d1ddda0
Remove old 'get' delegate convention in interfaces
2015-10-14 01:29:09 +03:00
Andrey Breslav
4f63d47f82
Intention action for hiddnen declarations fixed
2015-10-13 01:45:02 +03:00
Valentin Kipyatkov
cbf4e4a973
Corrected order of modifier insertion
2015-10-12 15:10:39 +03:00
Valentin Kipyatkov
55cbe185f8
Do not offer to convert to infix call when calling non-infix function
2015-10-12 15:10:39 +03:00
Valentin Kipyatkov
ee7425c1de
Checking "infix" modifier in completion and import popup
2015-10-12 15:10:39 +03:00
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