Andrey Breslav
932d29e2ef
A case for extending a raw Comparator
2012-12-04 22:58:20 +04:00
Alexander Udalov
09161d41c9
Regenerate tests
2012-12-03 18:22:15 +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
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
efc67f3d89
Rewritten CheckLoadVariablesTableTest to test generation framework.
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
4da03f75f9
Supported simplest case of signatures propagation in value parameter position.
...
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Andrey Breslav
304926005f
Proper errors for cases like 'is Map' supported in 'when'
2012-11-27 21:15:37 +04:00
Nikolay Krasko
85f7b4069f
Clean up test data after end of the test
2012-11-27 17:32:49 +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
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
649259e715
Type substitutor logic regarding projection composition fixed
2012-11-24 15:59:15 +04:00
Andrey Breslav
7d8bde2ac6
Test data moved out of JetTypeCheckerTest
2012-11-24 14:08:43 +04:00
Andrey Breslav
94552d5524
Proper message reporting
2012-11-24 14:08:43 +04:00
Pavel V. Talanov
59e74e79c2
Test for KT-2619
...
Remove outdated check in WhenChecker
# KT-2619 fixed
2012-11-23 17:18:09 +04:00
Pavel V. Talanov
997e26d11e
Test for KT-2890
...
# KT-2890 can't reproduce
2012-11-23 17:17:42 +04:00
Pavel V. Talanov
5fa069bebd
Test for KT-2152
...
# KT-2152 can't reproduce
2012-11-23 17:17:03 +04:00
Alexander Udalov
9d3907ff98
When-statements & correct line numbers
2012-11-22 22:32:21 +04:00
Alexander Udalov
aa898725fc
Mark line numbers on compile-time constants
2012-11-22 22:32:17 +04:00
Alexander Udalov
0f496eac21
Try-catch-finally statements & correct line numbers
2012-11-22 22:32:14 +04:00
Alexander Udalov
ca587513e3
Fix for finally before empty return
2012-11-22 22:32:10 +04:00
Alexander Udalov
99a908e8fe
If-then-else statements & correct line numbers
...
#KT-3036 Fixed
2012-11-22 22:31:58 +04:00
Alexander Udalov
8564c20baa
Fix condition generation of empty if
2012-11-22 22:31:53 +04:00
Alexander Udalov
af601b5a90
Single-branch if-statements
...
Single-branch if-expressions are now compiled to statements if the result is
not used
#KT-3036 In Progress
2012-11-22 22:31:40 +04:00
Alexander Udalov
9c7724b7f9
Introduce CodegenStatementVisitor
...
Which will be used for generating statements (as opposed to generating
expressions always, as it is now)
Add StatementGenTest, which will check if we actually generate statements and
not expressions of type Unit, popping them off the stack later
2012-11-22 22:07:01 +04:00
Alexander Udalov
cb08d27970
Refactor LineNumberTest
...
Allow passing custom expected & actual line numbers instead of those before
calls to test.lineNumber()
2012-11-22 18:54:22 +04:00
Pavel V. Talanov
3ae89dbb1d
Test for resolving static members of java enum
...
Add clarifying note
2012-11-21 19:49:45 +04:00
Pavel V. Talanov
b5b6f58b6b
Test for resolving inner classes
2012-11-21 19:49:44 +04:00
Pavel V. Talanov
737b246b01
Fix resolve of inner and nested classes in JavaDescriptorResolver
2012-11-21 19:49:44 +04:00
Pavel V. Talanov
96b48aedfc
Very simple test for resolving static members of java classes
2012-11-21 19:49:43 +04:00
Pavel V. Talanov
86cc1db609
Refactor: extract superclass from AnnotationJavaDescriptorResolverTest
2012-11-21 19:49:42 +04:00
Pavel V. Talanov
b6aa9b2bce
Make JavaClassStaticMembersScope extend JavaClassMembersScope instead of JavaPackageScope, use JavaBaseScope instead of JavaPackageScope in JavaNamespaceResolver
2012-11-21 19:46:13 +04:00
Andrey Breslav
4ed07cd9ae
Introducing KotlinPaths to impose some discipline on compiler/library location
2012-11-21 18:16:09 +04:00
Evgeny Gerashchenko
37cfb2fcc0
Checking errors when loading from Java in tests.
2012-11-21 14:00:51 +04:00
Svetlana Isakova
691cf52835
removed unused component dependencies
2012-11-20 19:54:55 +04:00
Svetlana Isakova
39450dd954
resolve function literal expression (as parameter) after resolve call
...
(therefore only once)
while resolve use FAKE_FUNCTION_TYPE as type
for function literal (which is a subtype/supertype for any function type)
2012-11-20 19:54:55 +04:00
Svetlana Isakova
473a969598
ArgumentTypeResolver introduce
...
(component used in CallResolver)
2012-11-20 19:54:54 +04:00
Svetlana Isakova
993d3a3469
added tests for resolve
...
(to test performance issues)
2012-11-20 17:59:20 +04:00
Evgeny Gerashchenko
60f30732ed
Supported several load from Java errors per declaration.
2012-11-20 17:20:02 +04:00
Evgeny Gerashchenko
4525e05268
Throwing exception only if no loading errors happened.
2012-11-20 17:20:02 +04:00