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
410922c58d
CallableMemberDescriptor.Kind.SYNTHESIZED
...
Introduce CallableMemberDescriptor.Kind.SYNTHESIZED for members which
neither are declared nor do appear as overrides of anything, but rather
are generated by the compiler.
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
Alexander Udalov
213157a3c5
Regenerate diagnostic tests
2012-09-07 17:58:03 +04:00
Evgeny Gerashchenko
17932f1b7c
EA-36257 - NPE: DecompiledDataFactory.appendDescriptor
...
Added assert in only place where source of NPE may appear.
2012-09-07 17:52:32 +04:00
Evgeny Gerashchenko
44a70669d7
Minor.
2012-09-07 17:52:32 +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
Alex Tkachman
10bdc02409
performance optimizations:
...
- classes for object/class object and function literals are final
- class objects call own methods via this in oppose to static field in parent
2012-09-06 18:10:58 +03: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
Andrey Breslav
fc90c775e9
KT-2730 AssertionError at org.jetbrains.jet.codegen.AnnotationCodegen.genAnnotations(AnnotationCodegen.java:86)
...
#KT-2730 Fixed
2012-09-06 15:31:59 +04:00
Natalia
1441f742bb
Android test: tests with mock jdk now run with jdk annotations
2012-09-06 12:44:49 +04:00
Nikolay Krasko
a96474845b
Fix check of path separators in tests
2012-09-06 12:02:44 +04:00
Nikolay Krasko
8666b7d34b
Increase readability of string generation with String.format()
2012-09-06 12:01:47 +04:00
Alexander Udalov
34eade6f4f
Rename println() method to prevent name collisions with the existing vararg method
2012-09-05 19:39:26 +04:00
Svetlana Isakova
38fec5e4cb
introduced static map for asm type constants
2012-09-05 18:55:19 +04:00
Svetlana Isakova
ef490ba8f1
test fixed after merge
2012-09-05 18:55:19 +04:00
Svetlana Isakova
bdf189ed71
fixes after merge
...
(added module configuration parameter)
2012-09-05 18:55:19 +04:00
Svetlana Isakova
8e5e309440
preserve order while collect overrides
2012-09-05 18:55:19 +04:00
Svetlana Isakova
e72c3d79f8
changed ConfigurationKind in tests
...
from JDK_ONLY to JDK_AND_ANNOTATIONS
(after collections mapping added)
2012-09-05 18:55:18 +04:00
Svetlana Isakova
9263dbb0fc
added configuration kind parameter to tests
2012-09-05 18:55:17 +04:00
Svetlana Isakova
fedf080a59
changes in MutableMap trait
2012-09-05 18:55:17 +04:00
Svetlana Isakova
02cf0258cb
move test
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
bab20717ee
KT-2688 Provide mutable/immutable interfaces for Java collections
...
#KT-2688 fixed
2012-09-05 18:55:16 +04:00
Svetlana Isakova
6fe49398a6
added 'getKotlinAnalogsForJavaStandardClasses'
...
to most of module configurations
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
a04f6ee263
extracted method reportHasKotlinAnalog
2012-09-05 18:55:16 +04:00
Svetlana Isakova
fb6e1e5dc3
added ERROR_CONFIGURATION to not to confuse it with empty configuration
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
Svetlana Isakova
22227663de
add 'isSafe' to FqNameUnsafe
2012-09-05 18:55:16 +04:00
Svetlana Isakova
e70db866ad
add 'getKotlinAnalogs' to ModuleConfiguration
2012-09-05 18:55:15 +04:00
Svetlana Isakova
7073b12d11
add ModuleConfiguration to injectors
...
(to be able to use it in TypeResolver)
2012-09-05 18:55:15 +04:00
Alexander Udalov
5aca16e65e
Replace "\n" with System.getProperty("line.separator")
2012-09-05 18:52:15 +04:00
Andrey Breslav
7c4322cd2c
Condition do not declare variables any more
2012-09-05 15:04:49 +04:00
Andrey Breslav
6de633d0cb
Fixing compilation on some versions of javac
2012-09-05 14:39:37 +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
4dd0b27e93
JVM Back-end does not handle complex patterns any more
...
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00