Svetlana Isakova
a299cec2eb
KT-3174 Call resolver doesn't understand type is not-nullable after ?. safe call
...
#KT-3174 fixed
2012-12-26 16:43:59 +04:00
Svetlana Isakova
9b645589df
KT-2838 Type inference failed on passing null as a nullable argument
...
#KT-2838 fixed
2012-12-26 14:38:53 +04:00
Svetlana Isakova
6208bdb6da
rename (swap SUB_TYPE and SUPER_TYPE)
2012-12-26 14:18:21 +04:00
Svetlana Isakova
e6594ed5b1
KT-2883 Type inference fails due to non-Unit value returned
...
#KT-2883 fixed
2012-12-26 13:53:42 +04:00
Svetlana Isakova
54dffd6aad
tests for obsolete tasks
...
#KT-3007 obsolete
#KT-3038 obsolete
2012-12-26 13:01:48 +04:00
Svetlana Isakova
b8507c0391
refactoring: extracted methods
...
createValueParameterDescriptor, computeReturnType, computeUnsafeReturnType
2012-12-25 20:25:36 +04:00
Svetlana Isakova
122c2cbefb
refactoring: extracted getValueParametersTypes
2012-12-25 19:46:27 +04:00
Svetlana Isakova
b0302246a0
HtmlTabledDescriptorRendererTest renamed to DiagnosticMessageTest
2012-12-25 19:12:01 +04:00
Svetlana Isakova
93fd2bf10f
RENDER_COLLECTION_OF_TYPES changed
2012-12-25 19:12:01 +04:00
Svetlana Isakova
76a62d8b7d
added PLACEHOLDER_FUNCTION_TYPE tests
2012-12-25 19:12:01 +04:00
Svetlana Isakova
f5e8766600
removed unused equalsOrContainsAsArgument method
2012-12-25 19:12:01 +04:00
Svetlana Isakova
4089ac68bd
improved error reporting
...
when error type is a generic parameter
2012-12-25 19:12:01 +04:00
Svetlana Isakova
19e6b02da8
CANNOT_INFER_PARAMETER_TYPE reporting improvement
2012-12-25 19:12:01 +04:00
Svetlana Isakova
2077faa76a
no ambiguity when overloading with different function type
...
(in incomplete resolve)
2012-12-25 19:12:01 +04:00
Svetlana Isakova
4c241b1234
refactoring: extracted method renderTypeWithoutEscape
2012-12-25 19:12:01 +04:00
Svetlana Isakova
16fa729c74
more readable rendering for special type constants
2012-12-25 19:12:01 +04:00
Svetlana Isakova
c37d7352a5
improved reporting TYPE_MISMATCH error for function literals
...
(introduced EXPECTED_PARAMETER_TYPE_MISMATCH, EXPECTED_RETURN_TYPE_MISMATCH, EXPECTED_PARAMETERS_NUMBER_MISMATCH
instead of reporting TYPE_MISMATCH on the whole function literal)
2012-12-25 19:12:00 +04:00
Svetlana Isakova
972b234db6
KT-3150 Kotlin m4 don't recognize function literals
...
#KT-3150 fixed
added check for PLACEHOLDER_FUNCTION_TYPE to constraint system
2012-12-25 19:12:00 +04:00
Svetlana Isakova
b467638633
move constants to util
...
use DON_CARE instead of PLACEHOLDER_FUNCTION_PARAMETER_TYPE
2012-12-25 19:12:00 +04:00
Evgeny Gerashchenko
ce02c3e058
Removed unused code from NamespaceComparator.
2012-12-25 15:20:57 +04:00
Evgeny Gerashchenko
e3a30b10a9
Not writing fake parameters of enum constructors to generic signature.
2012-12-25 15:20:57 +04:00
Evgeny Gerashchenko
2daf9a10d0
Renamed test methods.
2012-12-20 19:26:52 +04:00
Evgeny Gerashchenko
e49459f2cd
Accelerated navigation to library tests by compiling test library once.
2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko
e131cc1e83
Renamed tests for navigation to library.
2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko
5bdd68e502
Added navigation to source of constructor.
...
#KT-3168 fixed
2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko
32699133cd
Minor. Moved Pair class lower.
2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko
9906bbef4e
Navigation to decompiled primary constructor.
...
#KT-3168 in progress
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko
4c64ea58d5
Rendering primary constructor in decompiler.
...
#KT-3168 in progress
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko
9c15a04291
Pulled getUnsubstitutedPrimaryConstructor method to ClassDescriptor.
...
Removed ClassDescriptorFromSource. Implemented method in inheritors.
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko
5e5cd86194
Regenerated test data.
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko
1ab555a51b
Checking primary flag in constructors loaded from Java.
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko
7fcbb3d563
Resolving primary flag for constructors.
2012-12-20 18:48:46 +04:00
Evgeny Gerashchenko
68d8b6b4c3
Added test with @KotlinSignature on method returning array.
...
#KT-2840 can't reproduce
2012-12-20 18:48:46 +04:00
Svetlana Isakova
4775329fb7
refactoring in recordInitializedVariables
...
(iteration over used variables can be replaced with iteration over declared variables)
2012-12-18 19:47:55 +04:00
Svetlana Isakova
a5cf54d370
do not miss repeated 'uninitialized' error for properties
2012-12-18 19:47:55 +04:00
Svetlana Isakova
a85519c3db
isBackingFieldReference moved to JetPsiUtil
2012-12-18 19:47:55 +04:00
Svetlana Isakova
67d0d8b1a9
fix: val can be reassigned through backing field inside its own getter
2012-12-18 19:47:54 +04:00
Svetlana Isakova
58de1cabbc
update tests according to package properties check
2012-12-18 19:47:54 +04:00
Svetlana Isakova
11bc01795f
check package declaration in a file
...
to have the right properties initialization order
not to report errors if isDeclaredLocally (only recordInitializedVariables)
2012-12-18 19:47:54 +04:00
Svetlana Isakova
57518c1200
removed cached data for each instruction
2012-12-18 19:47:53 +04:00
Svetlana Isakova
207e161bfc
made pseudocode be built on JetElement
...
instead of JetDeclaration
to be able to be built on JetFile
2012-12-18 19:47:53 +04:00
Svetlana Isakova
cb87ec8bdd
added 'getFiles' method to BodiesResolveContext interface
2012-12-18 19:47:53 +04:00
Svetlana Isakova
b6e2a0fb39
made JetFile implements JetElement
2012-12-18 19:47:53 +04:00
Svetlana Isakova
62f35e5e87
added LookInsideStrategy enum
2012-12-18 19:47:53 +04:00
Svetlana Isakova
0626225ea5
removed always true 'lookInside' parameter
2012-12-18 19:47:52 +04:00
Svetlana Isakova
f697098fb4
KT-2960 Perform control flow checks for package property initializers
...
#KT-2960 fixed
2012-12-18 19:47:52 +04:00
Svetlana Isakova
51c38d4cd3
do not store references to all copies (if it's a copy itself)
2012-12-18 19:47:52 +04:00
Svetlana Isakova
428a2d8538
rename value -> generateInstructions
2012-12-18 16:00:27 +04:00
Svetlana Isakova
dc3e324987
removed cached reversedInstructions and deadInstructions
2012-12-18 16:00:27 +04:00
Svetlana Isakova
6e8ac23689
removed allow dead collecting
2012-12-18 16:00:27 +04:00