Commit Graph

1385 Commits

Author SHA1 Message Date
Svetlana Isakova e72cdbc1f7 added tests for 'copy' finally pseudocode part 2012-12-18 16:00:26 +04:00
Svetlana Isakova 93327a3e31 check uninitialized vars inside local declarations
added parameter 'includeInsideLocalDeclarations' to getDeclaredVariables
2012-12-18 16:00:26 +04:00
Svetlana Isakova f0dea9aee4 updated test data for try-finally 2012-12-18 16:00:26 +04:00
Svetlana Isakova 8141229744 added edge from try start to error through finally block
KT-2845 Wrong cf-analysys for variable initialization in try..finally
 #KT-2845 fixed
todo: some errors now are reported for several times (each time when analyzing finally block)
2012-12-18 16:00:25 +04:00
Evgeny Gerashchenko 85b50aefda Simplified code in DescriptorRendererImpl. 2012-12-17 16:36:01 +04:00
Evgeny Gerashchenko fc14d98869 Removed code for rendering tuple types. 2012-12-17 16:35:56 +04:00
Evgeny Gerashchenko b07d6d56a0 Escaping keywords used as identifiers in DescriptorRenderer.
#KT-2810 fixed
2012-12-17 16:35:55 +04:00
Andrey Breslav 947ab99f53 Tests fixed after default nullability for type arguments changed to NotNull 2012-12-14 15:28:22 +04:00
Andrey Breslav becd68b98d Nullability propagation with NotNull as default for type arguments 2012-12-14 15:28:22 +04:00
Andrey Breslav f925bfccd0 Changing default nullability for type arguments to NotNull 2012-12-14 15:28:21 +04:00
Evgeny Gerashchenko b8eb0c84ff Added 'synthetic' flag for bridge method.
#KT-3155 fixed
2012-12-13 14:36:41 +04:00
Evgeny Gerashchenko 34f9ae77ba Getting super methods correctly for inheritors of Collection, etc. 2012-12-10 21:43:42 +04:00
Evgeny Gerashchenko 1dc928b5db Disabled error checking for if super/sub method has raw types in signature. 2012-12-10 19:13:17 +04:00
Andrey Breslav 6141467499 Fixing tests after annotations changed 2012-12-10 16:44:41 +04:00
Andrey Breslav ebabb3b8af Error message fixed 2012-12-07 21:54:11 +04:00
Evgeny Gerashchenko 6c6abab033 Supported propagation for Java subclass of Kotlin class. 2012-12-07 14:41:58 +04:00
Evgeny Gerashchenko 95c9c4c0c4 Fixed direction of substitution when checking bounds of type parameters. 2012-12-07 14:41:57 +04:00
Evgeny Gerashchenko 5e86cbe004 Checking for return type in kotlin signature if have super methods. 2012-12-07 14:41:56 +04:00
Evgeny Gerashchenko 6975691e7a Supported cases with two superclasses when they have different variances. 2012-12-07 14:41:55 +04:00
Evgeny Gerashchenko 482d7813ee Updated testData after updating mockJdk. 2012-12-07 14:07:00 +04:00
Andrey Breslav 74212bd2a4 Generate mockJDK from real JDK 2012-12-07 14:06:59 +04:00
Evgeny Gerashchenko 83d5b1e6a0 Supported propagation for subclass of j.u.Collection and similar classes. 2012-12-07 14:06:59 +04:00
Evgeny Gerashchenko 01b3d75374 Removing redundant projections when loading from Java. 2012-12-07 14:02:54 +04:00
Evgeny Gerashchenko 46a485da01 Supported star projection in alternative signatures. 2012-12-07 14:02:54 +04:00
Evgeny Gerashchenko 91825a404c Added test for loading Foo<?> type from Java. 2012-12-07 14:02:54 +04:00
Natalia.Ukhorskaya a739964c74 Back-end: write correct visibility flags for private inner classes 2012-12-06 17:25:13 +04:00
Natalia.Ukhorskaya 17fa105116 Generate INVOKESPECIAL instruction for private method with default argument 2012-12-06 15:20:43 +04:00
Andrey Breslav 932d29e2ef A case for extending a raw Comparator 2012-12-04 22:58:20 +04:00
Nikolay Krasko f28a4c5464 Proof test for recursion in lazy resolve when classes and properties are trying to be imported into file scope 2012-12-03 15:17:25 +04:00
Evgeny Gerashchenko 00873b6e8c Reverted loading arrays from java with 'out' projection kind as return value.
#KT-3065
2012-11-29 17:02:43 +04:00
Alexander Udalov c9bdfd2f07 Generate compareTo() properly
Take into account:
1) resolved call to compareTo (instead of always calling Comparable's method)
2) types of both caller and callee, when primitive, to avoid wrong casting
(instead of always using caller's type)

 #KT-3078 Fixed
2012-11-28 17:45:38 +04:00
Alexander Udalov 9eecf22e15 Booleans are no longer Comparable 2012-11-28 17:41:36 +04:00
Alexander Udalov b23601eefe EA-40964
Don't access elements of an empty array
2012-11-28 17:41:35 +04:00
Evgeny Gerashchenko a773b8426e Removed copyrights from Java test data. 2012-11-28 15:23:55 +04:00
Evgeny Gerashchenko 88bf3d9298 Processing vararg flag of parameter for primitives and wrappers.
#KT-2776 fixed
2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 6375ea89a0 Supported propagation of upper bounds of method type parameters.
#KT-2776 in progress
2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 8d7de5d063 Supported checking for changing signature in submethods.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko dd671313c5 Supported propagation of vararg mark.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 4df311366d Added test for propagation of projection kind.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 795b3bfbe0 Supported propagation of mutability in parameter position.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko a937d6be91 First converting classifier, and then process arguments. 2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 4da03f75f9 Supported simplest case of signatures propagation in value parameter position.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 5b6828a7ce Fixed syntax error in @KotlinSignature. 2012-11-28 15:08:55 +04:00
Andrey Breslav 304926005f Proper errors for cases like 'is Map' supported in 'when' 2012-11-27 21:15:37 +04:00
Andrey Breslav dff5f382ab Special diagnostics when no type arguments passed on teh right-hand side of 'is' expression
Example:

if (a is Map) // ERROR: Say 'Map<*, *>' if you don't want to pass type arguments
2012-11-27 16:47:38 +04:00
Alexander Udalov 8e740a3ee4 Fix .put() for some stack values
#KT-3087 Fixed
2012-11-26 16:06:47 +04:00
Andrey Breslav e064a50728 Error renamed 2012-11-24 15:59:17 +04:00
Andrey Breslav c849a0c4e3 Redundant/conflicting projections 2012-11-24 15:59:16 +04:00
Andrey Breslav 12fd07af08 Report an error when variance is specified for a function or property type parameter 2012-11-24 15:59:16 +04:00
Andrey Breslav 889ea107f6 Reflect Kotlin's declaration-site variance in Java signatures 2012-11-24 15:59:15 +04:00