Evgeny Gerashchenko
6e62212727
Replaced sure() invocations with '!!' operator in codegen tests.
2012-09-17 18:00:21 +04:00
Alex Tkachman
8c823486d7
hashCode generation for data classes
2012-09-17 15:52:23 +03:00
Alex Tkachman
a4e272d7c6
optimization of toString for primitive types and "$expr"
...
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
Alex Tkachman
3b96624c81
small optimizaton of toString for primitive types (no boxing needed)
2012-09-17 09:07:08 +03:00
Alex Tkachman
58af365eb2
toString() method for data classes and fake implementation for hashCode/equals
2012-09-16 15:56:48 +03:00
Alex Tkachman
e317764a88
correct access flags for package private (coming from java) #KT-2781 fixed
2012-09-16 10:08:36 +03:00
Natalia.Ukhorskaya
c5db89e534
Generated field for classObject is now final
...
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Evgeny Gerashchenko
c33b880a57
EA-39177 - CCE: ArrayIterator.generate
...
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
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
Alex Tkachman
a8627a56ef
test for obsolete KT-2663
2012-09-13 16:28:00 +03: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
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
Alex Tkachman
53f145b533
optimization of delegates by val property
2012-09-08 09:34:02 +03:00
Alexander Udalov
2c84389a45
Codegen for "componentN" functions for data classes
2012-09-07 19:00:02 +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
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
Svetlana Isakova
7d37df5f38
tests changes after collections mapping
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
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
ce1320bab3
Multi-declarations supported in all flavours of for loops
...
(KT-2635 Support iteration with multiple range variable in JVM back-end)
#KT-2635 Fixed
2012-08-31 12:52:47 +04:00
Andrey Breslav
f1c4ab7188
Fix for RangeTo intrinsic for the case of LongRange
2012-08-31 12:52:46 +04:00
Andrey Breslav
e8e5d3a87d
Val-capturing tests for for-loops over arrays
2012-08-31 12:52:46 +04:00
Andrey Breslav
2a1307e040
For-loop over long range test
2012-08-31 12:52:46 +04:00
Alex Tkachman
bf892870e1
fix for multiple evaluation of expression on multi var declaration
2012-08-31 11:45:56 +03:00
Alex Tkachman
5038c906b2
fixed critical bug with receiver used in constructor, field initializer
2012-08-31 08:20:51 +03:00
Andrey Breslav
a47ab0d408
More tests for continue in for loops
2012-08-30 20:30:52 +04:00
Andrey Breslav
59724296d6
Fix continue in for loops. Tests added
2012-08-30 20:16:09 +04:00
Alex Tkachman
8a71cf7bf7
fix for KT=2702 - wrong bridges on super call
2012-08-30 15:37:15 +03:00
Kirill Berezin
b84f068c33
kt-1760 delegation to java iface:
...
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04:00
Pavel V. Talanov
22be002ef4
Remove enums inheriting from enums from test data.
2012-08-29 16:00:50 +04:00
Pavel V. Talanov
ae348a0547
Nested packages visibilities in jvm-backend.
2012-08-29 15:58:29 +04:00
Pavel V. Talanov
a28d78974b
Test data minor change.
...
Remove open for enum class (should be prohibited).
2012-08-29 15:58:24 +04:00
Andrey Breslav
c0c2ca0ac2
Report errors when iterator() returns a nullable type
2012-08-24 19:49:33 +04:00
Andrey Breslav
66faa0c03a
For-loop range expression (collection) can not be null
2012-08-24 19:49:33 +04:00
Andrey Breslav
1d01e66fc8
Tests for multi-decl for-loops over arrays of primitives
2012-08-24 19:49:32 +04:00
Andrey Breslav
707408b241
For loops over arrays generated with multi-decl support
2012-08-24 19:49:32 +04:00
Andrey Breslav
d5c44c3dd8
Test data moved
2012-08-24 19:49:32 +04:00
Andrey Breslav
edbc832861
Multi-decl for loops fixed
2012-08-24 19:49:32 +04:00
Andrey Breslav
e57e61ac68
For-loop generation rewritten for the case of explicit iterator usage
...
This implementation includes multi-declarations already, but tests are coming in the next commits.
Old ForLoopgenerator renamed to IntrinsicForLoopGenerator, and will be unified with the newly introduced interface soon.
Side-effect:
KT-2668 Codegen doesn't handle member extensions in for
#KT-2668 Fixed
2012-08-24 19:49:31 +04:00
Andrey Breslav
b1ba3e1260
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating in-expressions
2012-08-24 19:49:30 +04:00
Andrey Breslav
9ca49b50b8
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating when() conditions
2012-08-24 19:49:30 +04:00