Commit Graph

1195 Commits

Author SHA1 Message Date
Svetlana Isakova 0d1790a4f4 alternative signature applies for names
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Svetlana Isakova bbc5869ed4 changes in Collection interfaces
MutableList returns MutableListIterator
MutableMap returns MutableSet as keySet(), values(), entrySet()
2012-09-13 17:28:30 +04:00
Alex Tkachman a8627a56ef test for obsolete KT-2663 2012-09-13 16:28:00 +03:00
Natalia.Ukhorskaya 60bdae9d75 Prohibit body for annotation class
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Alex Tkachman 0a2f808ec0 test case and fixes for object and classes inner for enum entry 2012-09-12 20:48:12 +03:00
Alex Tkachman ca65574bce no need for context lookup of enclosing singletons #KT-2695 fixed 2012-09-12 19:41:26 +03:00
Alex Tkachman 6c4102bf23 simple case (no closures) of class level objects #KT-2398 fixed 2012-09-12 17:35:51 +03:00
Alex Tkachman 79c04038fb accessor for private constructors #KT-2716 fixed
also on the way done small refactoring of JetTypeMapper
- few code duplicates replace by methods
- mapToCallableMethod(ConstructorDescriptor) introduced
2012-09-12 10:31:48 +03:00
Andrey Breslav 068c6795fe Fixing tests 2012-09-11 21:02:05 +04:00
Andrey Breslav 91a9b6539f EA-37910 - UOE: DescriptorUtils.getSubstitution
The corresponding method reworked to be less of a hack
Tests added
2012-09-11 20:52:11 +04:00
Alex Tkachman 6a0e4d1593 name clash when several files of the same package has different paths but the same name #KT-2713 Fixed 2012-09-11 17:05:23 +03:00
Alex Tkachman ec549895e8 fix for NPE when lookup names in objects/closure in constructors #KT-2719 Fixed 2012-09-11 16:16:09 +03:00
Alex Tkachman 4eea0cafb9 test for obsolete KT-2626 2012-09-11 15:51:16 +03:00
Natalia.Ukhorskaya 199f10034b KT-2744 Unneeded error message when the only super type is not resolved
#KT-2744 Fixed
2012-09-11 15:17:13 +04:00
Svetlana Isakova c03190910c test change
returned check for unimported reference to test
2012-09-10 20:15:20 +04:00
Svetlana Isakova b2b3d6273e improved test 2012-09-10 20:15:20 +04:00
Alex Tkachman 53f145b533 optimization of delegates by val property 2012-09-08 09:34:02 +03:00
Svetlana Isakova cd5521d6dc rename error 2012-09-07 19:03:07 +04:00
Alexander Udalov c0dc1e6742 NamespaceComparator now serializes kind, if it's not DECLARATION.
Lots of test data changed to include members' kinds.
2012-09-07 19:00:08 +04:00
Alexander Udalov 67211fde40 Check componentN functions for overload conflicts 2012-09-07 19:00:05 +04:00
Alexander Udalov fbeaaf5fbb Check componentN functions for override conflicts
Check if newly generated component functions happen to override something
which they're not supposed to.
Create new slice to store mapping from annotation descriptors to
corresponding PSI elements, which is used by override checker to report
errors in data classes on.
2012-09-07 19:00:04 +04:00
Alexander Udalov c29312043c Refactor OverrideResolver.checkOverrideForMember()
Create CheckOverrideReportStrategy interface to report override errors
(will be used later for synthesized members override checks).

Add diagnostic test on OVERRIDING_FINAL_MEMBER, as no such test happened
to exist before.
2012-09-07 19:00:04 +04:00
Alexander Udalov 2aadfa47ee Write typeinfo annotations of generated componentN methods
Add some LoadKotlin testcases to test that.
2012-09-07 19:00:03 +04:00
Alexander Udalov 2c84389a45 Codegen for "componentN" functions for data classes 2012-09-07 19:00:02 +04:00
Alexander Udalov b93db69a24 Resolve "componentN" functions for data classes
Reuse existing (but not used) VALUE_PARAMETER_AS_PROPERTY in
BindingContext to store mapping from constructor's value parameters to
property descriptors.

Create a new slice DATA_CLASS_COMPONENT_FUNCTION to store mapping from
constructor's value parameters to generated componentN functions.
2012-09-07 19:00:01 +04:00
Alexander Udalov 95dddadb36 Present "data" annotation to standard library 2012-09-07 19:00:00 +04:00
Andrey Breslav b46187a560 KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
#KT-2739 Fixed
2012-09-07 18:24:22 +04:00
Andrey Breslav 7b01ce5acb Test for KT-2532 Exception on trying to override delegated member.
#KT-2532 Fixed
2012-09-07 14:49:02 +04:00
Kirill Berezin 6e951685de KT-2657 Fixed incorrect stack values order in delegation methods codegen #KT-2657 Fixed 2012-09-06 23:54:14 +04:00
Kirill Berezin 454ad48d5b added one more test to check if overrides are resolved correctly 2012-09-06 20:28:58 +04:00
Kirill Berezin 82a5beddea do not copy overrides for the delegated methods, it causes failure of delegation to traits which extend other traits 2012-09-06 20:27:43 +04:00
Kirill Berezin 1061e1ef69 do not generate delegates when the class already has such method either declared or delegated (report an ambiguity in this case)
Merge conflict resolved by committer
2012-09-06 20:27:43 +04:00
Natalia 4303083945 KT-322 Prohibit inheriting classes from enums
#KT-322 Fixed
2012-09-06 17:24:37 +04:00
Natalia 07cf73ecef KT-2697 Prohibit enum inheritance
#KT-2697 Fixed
2012-09-06 17:24:36 +04:00
Svetlana Isakova ef490ba8f1 test fixed after merge 2012-09-05 18:55:19 +04:00
Svetlana Isakova fedf080a59 changes in MutableMap trait 2012-09-05 18:55:17 +04:00
Svetlana Isakova 7d37df5f38 tests changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova 2cad93e4be jet collections added to builtin-classes test 2012-09-05 18:55:16 +04:00
Svetlana Isakova 7c828b9ff7 diagnostic tests changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova 31831f2433 added 'class has Kotlin analog' error
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Svetlana Isakova a3194e9a46 removed unnecessary import jet.Iterator 2012-09-05 18:55:16 +04:00
Svetlana Isakova 726bcb5465 KT-2606 Filter java.util.* import
#KT-2606 fixed
 added FilteringScope
2012-09-05 18:55:16 +04:00
Svetlana Isakova d642d2266b KT-2641 Warn on using j.l.Iterable in Kotlin code
#KT-2641 fixed
2012-09-05 18:55:16 +04:00
Andrey Breslav d4cdbbccff DataFLowInfo doesn't flow from when-checks 2012-09-05 14:18:41 +04:00
Andrey Breslav a267f65fa1 Front-end test data fixed to have no complex patterns
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Andrey Breslav 10d453ce6a Removing grammar/parsing support for complext patterns
#KT-2359 In progress
2012-09-05 14:18:40 +04:00
Alex Tkachman a54776196a fixed bug with compilation of this/outer. no need to check context hierarchy for superclasses except case of super call. 2012-08-31 17:42:35 +03:00
Alex Tkachman 737b794935 fix for KT-2711 wrong check on descriptor being integral range
method added to JetStandardLibrary to get all integral range descriptors
#KT-2711 fixed
2012-08-31 13:49:20 +03:00
Andrey Breslav c027b4149b Test for KT-2529 Support importing enum members using wildcard
#KT-2529 Fixed
2012-08-31 14:38:54 +04:00
Andrey Breslav 859dbc87d4 Fix CANNOT_CHECK_FOR_ERASED for when() 2012-08-31 14:23:02 +04:00