Commit Graph

27029 Commits

Author SHA1 Message Date
Michael Bogdanov 3452fc8d02 Don't initialize const properties in constructor
#KT-9532 Fixed
2015-10-17 15:31:57 +03:00
Stanislav Erokhin 7d7d37719b Forbidden old invokeExtension convention. 2015-10-17 14:45:53 +03:00
Alexey Sedunov fc4b0a8121 Minor: Rename test class 2015-10-17 00:24:40 +03:00
Alexey Sedunov 6f5d977728 Inspections: Add inspection on equals()/hashCode() 2015-10-17 00:24:39 +03:00
Alexey Sedunov 127cb36602 Minor: Allow running member generation actions without editor 2015-10-17 00:24:38 +03:00
Alexey Sedunov 915236a6ba Code Insight: "Generate equals/hashCode" action 2015-10-17 00:24:37 +03:00
Ilya Gorbunov d1d0807229 Add a note about *Raw functions behavior. 2015-10-16 23:55:37 +03:00
Ilya Gorbunov 8fd5677fe0 Move map-related *Raw methods to Maps.kt and do some cleanup there.
Correct deprecation messages and replacements.
2015-10-16 23:38:40 +03:00
Ilya Gorbunov e2cf8a919c Fix contains usages in stdlib tests 2015-10-16 23:38:30 +03:00
Ilya Gorbunov 683bc4bd01 Generate *Raw methods. 2015-10-16 23:38:29 +03:00
Ilya Gorbunov 8aed39d9bb Provide *Raw methods as a replacement. 2015-10-16 23:38:27 +03:00
Ilya Gorbunov d1a007e902 Do not generate deprecated contains for ranges. 2015-10-16 23:38:25 +03:00
Ilya Gorbunov c5cd599e30 Delegate indexOf and lastIndexOf to List if the Iterable is List. 2015-10-16 23:38:23 +03:00
Ilya Gorbunov 45d13fafc8 StdLib generator: Allow receiver star-projections to be specified per-family. 2015-10-16 23:38:22 +03:00
Ilya Gorbunov efa285bc30 ExpressionDecomposer: non-nullable upper bound of R, since supertype expects R to be non-null. 2015-10-16 23:38:20 +03:00
Ilya Gorbunov 654a85368d Allow to evaluate FamilyProperty based on family value specified. 2015-10-16 23:38:18 +03:00
Yan Zhulanow 3bb1b1adfd Put property delegates -related warnings on 'by' 2015-10-16 22:20:06 +03:00
Yan Zhulanow b42d913bd7 Unify 'lateinit' diagnostics 2015-10-16 22:19:33 +03:00
Yan Zhulanow 9699708fb8 Do not put inapplicable annotations on getter 2015-10-16 22:19:33 +03:00
Yan Zhulanow 9ae3b0fa9c Drop loading Java annotation methods as functions 2015-10-16 22:13:34 +03:00
Svetlana Isakova 25b40455ad Serialize/deserialize annotations on type parameters 2015-10-16 21:58:47 +03:00
Svetlana Isakova b7e2604bf2 Rename DeserializedTypeParameterDescriptor .java -> .kt 2015-10-16 21:58:47 +03:00
Svetlana Isakova ded62686a0 Added 'LowPriorityInOverloadResolution' annotation 2015-10-16 21:58:46 +03:00
Svetlana Isakova 1cfb7d8f57 Changed constraint system tests
after adding new error 'hasTypeParameterWithUnsatisfiedOnlyInputTypesError'
2015-10-16 21:58:46 +03:00
Svetlana Isakova a6ec5cecc0 Added 'OnlyInputTypes' annotation 2015-10-16 21:58:46 +03:00
Svetlana Isakova 082469aee4 Resolve annotations on type parameters of functions and properties 2015-10-16 21:58:45 +03:00
Svetlana Isakova 9b440345a1 Do not render @NoInfer, @Exact annotations
For now they are always not rendered,
but later they should be rendered in descriptors, but omitted in error messages
2015-10-16 21:58:45 +03:00
Svetlana Isakova 566e27788f Moved @NoInfer, @Exact to internal package 2015-10-16 21:58:44 +03:00
Svetlana Isakova b401d46ae4 Check annotations on type arguments 2015-10-16 21:58:44 +03:00
Svetlana Isakova 6c4771147a Added more tests on annotations for nullable types 2015-10-16 21:58:43 +03:00
Yan Zhulanow 8a5c59e6b7 Inline static fields from Java 2015-10-16 21:36:33 +03:00
Denis Zharkov 7cbab5816c Fix lost testData 2015-10-16 21:11:05 +03:00
Mikhail Glukhikh 4b35e3b135 Preliminary declaration visitor for estimating local variable's predictability for smart casts
Predictability estimation algorithm is completely new, but backward compatibility should present.
A large set of tests. Some updated tests.
Smart casts allowed for captured variables if they are not modified in closure #KT-9051 Fixed
Also #KT-8643 Fixed
Also #KT-7976 Fixed
Correct handling of lambda arguments in functions #KT-9143 Fixed
2015-10-16 20:47:47 +03:00
Stanislav Erokhin de7d2978db Fix assertEquals usage in kotlin code after adding statics to scope. 2015-10-16 20:42:35 +03:00
Stanislav Erokhin d5dbc9638d Added static methods, nested classes and companion object from superclasses. 2015-10-16 20:42:34 +03:00
Stanislav Erokhin ace99f6c3f Don't use ForceResolveUtil.forceResolveAllContents in TypeResolver in order to avoid problems with cyclic hierarchy. 2015-10-16 20:42:33 +03:00
Ilya Gorbunov e24af934dc Use the same implementation in Array.toArrayList as in arrayListOf. 2015-10-16 19:20:26 +03:00
Valentin Kipyatkov 55122cda9e Minor changes on code review 2015-10-16 19:06:35 +03:00
Valentin Kipyatkov 6cf7d92565 Checking that no quickfixes hold references to DeclarationDescriptor's 2015-10-16 19:06:35 +03:00
Valentin Kipyatkov a6c4d29640 More correct 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 6dbfe11afc Dropped inheritance from HintAction when not needed, dropped JetHintAction 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 9c6e0293ed No i18n 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 8cc3763465 Inlined JetAddFunctionToClassifierAction class into AddFunctionToSupertypeFix 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov ff13bcce1f Code simplifications 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 1a13ec0b00 Converted to Kotlin 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 41775bf8a0 Code refactoring 2015-10-16 19:06:34 +03:00
Valentin Kipyatkov 7c4e9f1caf ChangeMemberFunctionSignatureFix to not hold DeclarationDescriptor's 2015-10-16 19:06:33 +03:00
Valentin Kipyatkov 8dcc0096a8 Code simplifications + no i18n 2015-10-16 19:06:33 +03:00
Valentin Kipyatkov cd6450e1a1 Converted to Kotlin 2015-10-16 19:06:33 +03:00
Valentin Kipyatkov 714e97751d Not holding descriptor in SuperClassNotInitialized.AddParametersFix 2015-10-16 19:06:33 +03:00