Commit Graph

27578 Commits

Author SHA1 Message Date
Alexey Sedunov 22393d4cd2 Formatter: Use formatter to automatically insert semicolons after the last enum entry when needed 2015-11-02 15:15:26 +03:00
Dmitry Petrov d060687775 Package vs class conflict in qualifier resolution:
- add test for unresolved 'a.a' after 'import a.a';
- added TODO in copy-paste test for 'a.a'
2015-11-02 10:22:50 +03:00
Dmitry Petrov e1cb13bd90 Qualifier no longer defers "(nested) class vs package" resolution.
Consider FQN 'a.b.c'.
If 'a' is a classifier in the current scope,
    resolve rest in the corresponding class scope.
Otherwise (if 'a' is a package),
    find the maximum possible prefix 'a.b' resolving to a package,
    resolve rest in the corresponding package scope.
2015-11-02 10:22:50 +03:00
Alexander Udalov a950f36fd7 Minor, fix test data 2015-10-31 13:52:04 +03:00
Stanislav Erokhin 25a168d2a4 Minor. Fix potential deadlock 2015-10-31 10:01:08 +03:00
Stanislav Erokhin 77411b2181 Allowed call value with extension function type as simple function type. 2015-10-31 10:01:07 +03:00
Denis Zharkov b6f724cf58 Disconnect loops between upper bounds of type parameters
#KT-9759 Fixed
2015-10-31 09:33:46 +03:00
Denis Zharkov 9b4ad1466a Minor. Extract 'getAllUpperBounds' 2015-10-31 09:33:46 +03:00
Denis Zharkov 18097c0ab7 Introduce 'SupertypeLoopsResolver' and inject it's impls 2015-10-31 09:33:46 +03:00
Denis Zharkov 0bc5043c75 Extract and convert 'findLoopsInSupertypesAndDisconnect' 2015-10-31 09:33:45 +03:00
Denis Zharkov 8ba2dc5530 Simplify detecting loops in classes supertypes 2015-10-31 09:33:45 +03:00
Yan Zhulanow 33d67a3bf4 Fix JvmField applicability test data
(Annotation is not applied both to field & getter now)
2015-10-31 04:30:24 +03:00
Alexander Udalov b5f89100f6 Remove obsolete SCRIPT markers 2015-10-30 23:41:32 +03:00
Alexander Udalov c75d96b82c Add testcase for fixed issue
#KT-9850 Fixed
2015-10-30 23:41:10 +03:00
Michael Nedzelsky 48929f3edf Test for obsolete KT-9277
#KT-9277 Obsolete
2015-10-30 18:57:48 +03:00
Michael Nedzelsky dbc00baa48 Test for obsolete KT-5508
#KT-5508 Obsolete
2015-10-30 18:57:45 +03:00
Michael Nedzelsky 947b4d4ce8 Test for obsolete KT-3343
#KT-3343 Obsolete
2015-10-30 18:57:42 +03:00
Valentin Kipyatkov d38b3146db More correct completion of overrides in constructor parameters - '$' character confuses parser 2015-10-30 17:43:28 +03:00
Valentin Kipyatkov c2cf95bcd4 KT-9787 Auto-popup parameter info on typing '['
#KT-9787 Fixed
2015-10-30 17:43:28 +03:00
Valentin Kipyatkov def0e01e8d KT-9684 Add kotlinx.android.synthetic package to default imports with '*'
#KT-9684 Fixed
2015-10-30 17:43:27 +03:00
Valentin Kipyatkov ebe3efe710 Minor 2015-10-30 17:43:26 +03:00
Valentin Kipyatkov 7e2b37bb0f KT-9813 Parameter name&type completion gets in the way of typing
#KT-9813 Fixed
2015-10-30 17:43:26 +03:00
Valentin Kipyatkov 752cdd5f83 KT-9815 Import insertion (on Alt-Enter) does not work in Evaluate Expression
#KT-9815 Fixed
2015-10-30 17:43:25 +03:00
Valentin Kipyatkov 61fc3e7705 Added test for auto-import fix in code fragment 2015-10-30 17:37:24 +03:00
Valentin Kipyatkov ce50a27af0 KT-9729 Invert If Condition intention should run Simplify Negated Expression when applicable
#KT-9729 Fixed
2015-10-30 17:25:36 +03:00
Valentin Kipyatkov 87f68f3332 KT-9688 Completion of methods to override: prefer those that need to be implemented
#KT-9688 Fixed
2015-10-30 17:25:36 +03:00
Valentin Kipyatkov acc451bc54 KT-9723 Completion of override property in constructor produces bad formatting
#KT-9723 Fixed
2015-10-30 17:25:36 +03:00
Valentin Kipyatkov c643eb14a1 No i18n 2015-10-30 17:25:36 +03:00
Valentin Kipyatkov 3c1538997e Fixed "Make class open" in case of primary constructor
#KT-9767 Fixed
2015-10-30 17:25:36 +03:00
Valentin Kipyatkov fc924d1c9f Not operator 2015-10-30 17:25:35 +03:00
Valentin Kipyatkov d289ebd874 Cannot make any object 'abstract' 2015-10-30 17:25:35 +03:00
Valentin Kipyatkov 2b97a1034f Converted to Kotlin 2015-10-30 17:25:35 +03:00
Valentin Kipyatkov 2b3694a77e Do not drop use of SAM-constructor when it's required for labeled return 2015-10-30 17:25:35 +03:00
Valentin Kipyatkov 34298190b3 Use unaryPlus() and unaryMinus() instead of plus() and minus() + no identityEquals() 2015-10-30 17:25:35 +03:00
Valentin Kipyatkov c5e13ebc68 Minor corrections on code review 2015-10-30 17:25:34 +03:00
Michael Bogdanov 7ee42ab18d Fix for KT-9828: DX error on MutableMap.MutableEntry<String, Int> deconstruction: attempt to set or access a value of type java.lang.Object using a local variable of type int.
#KT-9828 Fixed
2015-10-30 16:47:21 +03:00
Michael Nedzelsky 9a8b73c5a5 fix texts in error messages for Fintite Bound Restriction & Non-Expansive Inheritance Restriction 2015-10-30 16:39:19 +03:00
Mikhail Glukhikh 182cde1e02 Standard data flow analysis results are taken into account during condition analysis #KT-7933 Fixed 2015-10-30 16:14:34 +03:00
Mikhail Glukhikh dd1196ae6b Condition analysis: left part of and (true condition) / or (false condition) is used for right part analysis #KT-8780 Fixed 2015-10-30 16:14:33 +03:00
Mikhail Glukhikh 12103d19d2 Smart casts inside property chains like a?.b?.c.foo(a, b) are now handled correctly #KT-7290 Fixed 2015-10-30 16:14:32 +03:00
Natalia Ukhorskaya 8be9be336f Fix NPE on stepping
#KT-9821 Fixed
2015-10-30 14:53:06 +03:00
Natalia Ukhorskaya e1e845cef1 Fix conditional breakpoints 2015-10-30 14:53:06 +03:00
Michael Nedzelsky 3c855547e5 improve tests for access from tests to internal for maven and gradle (add override for internal function) 2015-10-30 14:42:44 +03:00
Michael Nedzelsky 6ebe0c30ec fix KT-9299 In a project with circular dependencies between modules, IDE reports error on use of internal class from another module, but the corresponding code still compiles and runs.
#KT-9299 Fixed
2015-10-30 14:40:46 +03:00
Mikhail Glukhikh 17b275af23 Preliminary declaration visitor: create for top-most declaration which is not class 2015-10-30 13:44:33 +03:00
Mikhail Glukhikh 932985f0c1 Preliminary declaration visitor: do not create if already exists 2015-10-30 13:34:01 +03:00
Valentin Kipyatkov 44e56c4b93 Correct scope declarations in completion for code fragments 2015-10-30 12:03:53 +03:00
Valentin Kipyatkov 5a69a17ab0 Minor 2015-10-30 12:03:53 +03:00
Valentin Kipyatkov 40d3f71e1a Temporary fix for completion of Android synthetic extensions 2015-10-30 12:03:53 +03:00
Valentin Kipyatkov 129f6f8532 Big refactoring of BasicCompletionSession 2015-10-30 12:03:53 +03:00