Simon Ogorodnik
2b63bcaa19
Correct diagnostics and quick-fix for T::class with non-reified type parameter #KT-9590 fixed
2016-09-09 16:14:11 +03:00
Mikhail Glukhikh
998399bcd8
Change to star projection no longer applied for functional types #KT-13715 Fixed
...
Also EA-87648 Fixed
2016-09-09 15:00:02 +03:00
shiraji
9d768e2375
Add quickfix for FINAL_UPPER_BOUND: inline type parameter #KT-13773 Fixed
2016-09-08 17:48:01 +03:00
Alexey Sedunov
89c39b9762
Misc: Use TODO() consistently in implementation stubs
...
#KT-13589 Fixed
2016-08-29 16:20:55 +03:00
Alexey Sedunov
63092f6985
Create from Usage: Implement "Create type parameter" quickfix
...
#KT-11525 Fixed
2016-08-29 16:20:32 +03:00
Alexey Sedunov
6a2edabbd4
Create from Usage: Implement "Create type alias" quickfix
...
#KT-12904 Fixed
2016-08-29 14:13:56 +03:00
Valentin Kipyatkov
17edbac72b
Fixed test data
2016-08-29 13:38:18 +03:00
Valentin Kipyatkov
9cddd0d1a4
Renamed classes
2016-08-29 13:38:17 +03:00
Valentin Kipyatkov
cbae3d77df
Don't use term "Static import" + refer quickfix by class name in negative tests
2016-08-29 13:38:17 +03:00
Valentin Kipyatkov
0072bf079d
Changes on review of pull request
2016-08-29 13:38:17 +03:00
Simon Ogorodnik
939b4768f5
Added tests, and fixed some bugs using it
2016-08-29 13:38:16 +03:00
Mikhail Glukhikh
0ee1102e24
KT-13536 related: correct handling of objects
...
(cherry picked from commit 7ae9b6b)
2016-08-25 10:32:40 +03:00
Mikhail Glukhikh
6ac4bf3f17
No more SOE in UnusedSymbolInspection #KT-13536 Fixed
...
(cherry picked from commit 23961ee)
2016-08-25 10:32:31 +03:00
Mikhail Glukhikh
c07906fac4
Replace with safe calls forbidden for comparisons #KT-13432 Fixed
2016-08-22 15:11:33 +03:00
Kirill Rakhman
1fbd6678a5
Add quickfix for "A type annotation is required on a value parameter" #KT-12804 Fixed
2016-08-22 15:11:28 +03:00
Mikhail Glukhikh
b3b83e344b
Added fake override search in unused symbol inspection #KT-13288 Fixed
2016-08-22 13:18:40 +03:00
Alexey Sedunov
c2b38cfa41
Create from Usage: Place extension properties after the usage and generate stub getter
...
#KT-11795 Fixed
2016-08-18 19:15:38 +03:00
Alexey Sedunov
99ba340236
Create from Usage: Make extension functions/properties 'private' by default
...
#KT-11799 Fixed
2016-08-18 19:15:37 +03:00
Alexey Sedunov
92b0c852dd
Remove Unused Receiver: update function/property usages
...
#KT-8903 Fixed
2016-08-18 19:15:36 +03:00
Ilya Gorbunov
3115aa1dc2
Test data: replace Exception with Thread as the former is resolved not from java.lang anymore.
2016-08-17 12:40:50 +03:00
Ilya Gorbunov
570ac8b821
Add runtime dependency to tests where exception references are used.
2016-08-17 12:40:50 +03:00
Alexey Sedunov
562488b348
Create from Usage: Disable "Create property" (non-abstract) in interfaces. Make "Create function" (non-abstract) generate function body in interfaces
...
#KT-13365 Fixed
2016-08-17 11:49:52 +03:00
Kirill Rakhman
e6d76a9b71
Allow suppressing warnings for secondary constructor (KT-12627)
...
(cherry picked from commit 41cf868)
#KT-12627 Fixed
2016-08-16 13:04:42 +03:00
Mikhail Glukhikh
b53cb91e88
Do not suggest "Replace infix with safe call" inside conditions or binary / unary expressions #KT-13328 Fixed
2016-08-15 15:42:27 +03:00
Kirill Rakhman
d68a681db5
Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed
2016-08-15 13:28:47 +03:00
Mikhail Glukhikh
52dacd1d49
KT-13430 related: add non-null assertion works also for UNSAFE_INFIX_CALL
2016-08-12 17:43:31 +03:00
Mikhail Glukhikh
cf2d575eec
Add non-null assertion: correct handling of unary expression unsafe calls #KT-13430 Fixed
2016-08-12 17:43:26 +03:00
Mikhail Glukhikh
13975778c5
Unused symbol: handling of import as alias not only for objects / enums #KT-11933 Fixed
2016-08-12 17:42:33 +03:00
shiraji
3e58283d7e
Add quickfix for adding 'inline' to a function with reified generic #KT-6975 Fixed
2016-08-12 12:15:40 +03:00
Alexey Sedunov
6e3d1d726e
Create from Usage: Do not suggest creating annotations/enum classes for unresolved type parameter bounds
...
#KT-13364 Fixed
2016-08-10 11:45:37 +03:00
Alexey Sedunov
75573bd6a5
Quick Fixes: Use simple class name in "Change function return type" quickfix
...
#KT-12919 Fixed
2016-08-10 11:45:35 +03:00
Mikhail Glukhikh
39090113e9
KT-13262 related: surround with null check is applicable now also for qualified calls with argument type mismatch
...
(cherry picked from commit 8f13c84)
2016-08-01 12:24:49 +03:00
Mikhail Glukhikh
b7fd41844d
Wrap with safe let call handles qualified calls correctly #KT-13262 Fixed
...
(cherry picked from commit 7044348)
2016-08-01 12:24:38 +03:00
Mikhail Glukhikh
995a633229
Replace with safe call works now on UNSAFE_IMPLICIT_INVOKE #KT-12628 Fixed
...
(cherry picked from commit 208798d)
2016-07-29 20:12:11 +03:00
Mikhail Glukhikh
a9c30e878b
KT-12628: !! is now correctly added to array expressions
...
(cherry picked from commit 56c9d7e)
2016-07-29 20:12:02 +03:00
Mikhail Glukhikh
47493c1a65
KT-12628: replace infix call supports now array accesses too
...
(cherry picked from commit 3d67f84)
2016-07-29 20:11:45 +03:00
Mikhail Glukhikh
c439a751ab
KT-12628: new test for arg + something with nullable arg
...
(cherry picked from commit a7e4e2d)
2016-07-29 20:11:36 +03:00
Mikhail Glukhikh
9830140a15
Make constructor parameter a property: additional test for private property in superclass
...
(cherry picked from commit dd30bd5)
2016-07-29 20:11:27 +03:00
Mikhail Glukhikh
838cfc7dca
Make constructor parameter a property: select 'private' to be able to remove it #KT-13187 Fixed
...
(cherry picked from commit dc8c195)
2016-07-29 20:11:18 +03:00
Mikhail Glukhikh
0278a6c8a4
Make constructor parameter a property: message shortened a bit
...
(cherry picked from commit 1938909)
2016-07-29 20:11:09 +03:00
Mikhail Glukhikh
30b0875b26
Merge pull request #906 from cypressious/make_val_private
...
Quickfix "Make primary constructor parameter a val" makes the val private now #KT-13187 Fixed
2016-07-25 09:46:42 +03:00
Dmitry Jemerov
a979c7e1d7
ugly fix for failing tests. without the string template, KotlinFilePathReferenceContributor injects a file reference into the string literal, and an unrelated intention (AddAnnotationIntention) tries to resolve it. resolving the reference caches the default contexts in FIleReferenceSet, which caches the order entries of a module in an OrderRootsCache. this creates VirtualFilePointers which are for some reason not disposed properly.
2016-07-23 21:18:26 +02:00
Kirill Rakhman
ce80f94830
Quickfix "Make primary constructor parameter a val" makes the val private now
...
Fixes #KT-13187
2016-07-23 14:32:25 +02:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
9be219b69c
Check presence of dispatch receiver parameter in modifier checks
...
Also fix typo in "inapplicable infix" diagnostic message
2016-07-22 18:13:39 +03:00
Alexander Udalov
2a390155a9
Fix quotes in diagnostic messages
...
See 8316953259
2016-07-22 18:13:38 +03:00
Alexander Udalov
2fcd4e955a
Simplify code in callable reference resolution
2016-07-22 11:05:19 +03:00
Alexander Udalov
5a6237b357
Refactor resolution of double colon expression LHS
...
Try resolving the LHS only when it looks (PSI-wise) like it could represent a
type element. This, for example, allows "illegal selector" error to be reported
on weird expressions like '""?.""::class'.
Also remove expression text from the "illegal selector" diagnostic, it's not
needed and can screw up the error message if the text is too big
2016-07-22 11:05:19 +03:00
Alexey Sedunov
ae06f01c95
Create from Usage: Approximate unresolvable types
...
#KT-7722 Fixed
(cherry picked from commit 917cd22)
2016-07-20 16:36:12 +03:00
Alexey Sedunov
a1e86e8bfa
Create from Usage: Show target class name in the text of "Create member" quick fix
...
(cherry picked from commit a51d3fc)
2016-07-20 15:39:19 +03:00