Natalia Ukhorskaya
9f3b73986a
Update to IDEA 13.1 (134.1007)
2014-02-17 10:45:48 +04:00
Pavel V. Talanov
4c57aa9f23
Generate Injectors: minor, remove redundant GenerateInjectors class
2014-02-14 16:47:23 +04:00
Pavel V. Talanov
f8a8bbe9b0
Generate Injectors: add ability to specify that a field is a context
...
Context field's properties can injected into other components
Use it in GenerateInjectors.kt
2014-02-14 16:47:22 +04:00
Pavel V. Talanov
6c77ea91c5
Generate Injectors: simplify and remove redundancy
2014-02-14 16:47:21 +04:00
Evgeny Gerashchenko
5a1f98041e
Simplified kotlinc tests.
2014-02-13 20:46:29 +04:00
Alexander Udalov
8b918ef1aa
Add regression tests for obsolete issues
...
#KT-1291 Obsolete
#KT-2895 Obsolete
#KT-3060 Obsolete
#KT-3298 Obsolete
#KT-3613 Obsolete
#KT-3862 Obsolete
2014-02-13 04:43:53 +04:00
Alexander Udalov
a98434263b
Add regression test for outdated issue
...
#KT-3738 Obsolete
2014-02-12 19:17:55 +04:00
Alexander Udalov
35c7c4afd8
Fix capturing outer this in some cases in JVM codegen
...
When property initializer of some inner entity (e.g. anonymous object) contains
a reference to some outer entity (say, a property of the outer class), we need
to make sure we called "lookupInContext" on this entity's owner class, so that
"setCaptureThis" was called on the appropriate closure
#KT-4176 Fixed
2014-02-12 19:17:55 +04:00
Svetlana Isakova
70374ea9be
KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println
...
#KT-4529 Fixed
2014-02-12 14:47:10 +04:00
Svetlana Isakova
2ebe8fd6a2
improvements after review in constraint system tests
2014-02-12 12:48:15 +04:00
Svetlana Isakova
9832676701
generate constraint system tests
...
more tests added
2014-02-12 12:48:13 +04:00
Svetlana Isakova
791fa22abb
KT-4405 Control-flow analysis is not performed for some local declarations #KT-4405 Fixed
2014-02-12 12:48:13 +04:00
Svetlana Isakova
aa713ef1f6
generate pseudocode for property accessor only if the property is local
...
otherwise check it independently like a function
2014-02-12 12:48:12 +04:00
Svetlana Isakova
1c4db84d92
do not try properties named 'invoke' when resolve 'invoke'
2014-02-12 12:48:12 +04:00
Svetlana Isakova
b51e3dc464
added ConstraintSystemTest
2014-02-12 12:48:11 +04:00
Svetlana Isakova
9d493b6f7b
generate CHECK_CAST for smartcasted 'this'
2014-02-12 12:48:11 +04:00
Svetlana Isakova
9ed57a5767
removed AutoCastReceiver
...
check subtype for receiver by AutoCastUtils.isSubTypeByAutoCast directly
#KT-4403 Fixed
#KT-4415 Fixed
2014-02-12 12:48:10 +04:00
Svetlana Isakova
5ef320173c
generate pseudocode for functions in local classes
...
#KT-4405 In progress
#KT-3501 Fixed
2014-02-11 21:07:10 +04:00
Svetlana Isakova
f74fbf9f8b
added readme file about diagnostic tests directives
2014-02-11 21:07:09 +04:00
Svetlana Isakova
8868da8c5f
KT-4372 Invalid error position and failing to resolve invoke with receiver from other module #KT-4372 Fixed
2014-02-11 21:07:09 +04:00
Svetlana Isakova
45abab2a2c
KT-4341 No resolved call for right-hand side of equals expression
...
#KT-4341 Fixed
2014-02-11 21:07:08 +04:00
Svetlana Isakova
aca21f78d5
check incomplete equality
2014-02-11 21:07:08 +04:00
Pavel V. Talanov
80183c88cf
Do not normalize visibilities for fake overrides
...
#KT-4525 Fixed
2014-02-11 20:13:11 +04:00
Pavel V. Talanov
e3ae7afac3
Add validation for binding between java classes and corresponding package fragments
2014-02-11 17:17:06 +04:00
Tuomas Tynkkynen
7429cc8819
Make JetTestUtils.getLastCommentInFile() to allow trailing newline
...
Many editors add a trailing newline when saving. Allow them in
getLastCommentInFile.
2014-02-09 17:22:10 +04:00
Tuomas Tynkkynen
420a08167b
Extract JetTestUtils.getLastCommentInFile()
...
JetNameSuggesterTest contains useful code for getting the last comment
of a file. Extract it to JetTestUtils.getLastCommentInFile() so other
tests can use it as well.
2014-02-09 17:22:07 +04:00
Andrey Breslav
9229062926
Do not annotate bare type parameters as @Nullable
...
This is to account for the case of, say
class Function<R> { fun invoke(): R }
it would be a shame to put @Nullable on the return type of the function, and force all callers to check for null,
so we put no annotations
2014-02-07 16:41:12 -08:00
Mikhael Bogdanov
e0ca1abe4b
KT-3706 Inconsistent stack height in try catch finally in function
...
KT-4134 Incorrect bytecode is generated for
#KT-3706 Fixed
#KT-4134 Fixed
2014-02-07 13:45:22 +04:00
Evgeny Gerashchenko
ce7e0a7457
Fixed problem with overriding method with non-trivial raw type (when erased type parameter has upper bound)
...
Also added cases for the code which was changed.
2014-02-06 13:52:59 +04:00
Andrey Breslav
8dc9aecbf8
DescriptorSearchRule removed
2014-02-05 18:12:01 +04:00
Andrey Breslav
e60bd514fa
StorageManager&ExceptionTracker delivered where needed
...
- GlobalContext introduced to group the two
- Caches track exceptions
2014-02-04 15:24:27 +04:00
Andrey Breslav
a90dbc48ef
Information about LockBasedStorageManager instances added to assertions
2014-02-04 15:23:14 +04:00
Nikolay Krasko
f526129ca4
Refactoring: use injector for creating lazy resolve session
2014-02-04 12:31:38 +04:00
Nikolay Krasko
36d5e580b4
Refactoring: remove unnecessary constructors (prepare for injectors)
2014-02-04 12:31:37 +04:00
Alexander Udalov
320a583de8
Check that lazy resolve works correctly on built-ins
...
This test is needed because BuiltInsSerializer uses lazy resolve to load and
serialize built-ins. We need to make sure that lazy resolve works exactly like
deserialization
2014-01-31 16:46:18 +04:00
Alexander Udalov
e28819b42e
Revert "Using default renderer in LoadBuiltinsTest."
...
This reverts commit 1d21ebf882 .
Conflicts:
compiler/testData/builtin-classes.txt
core/descriptors/src/org/jetbrains/jet/renderer/DescriptorRendererImpl.java
Reverting a part of this (related to the field 'prettyFunctionTypes') because
will need to add a test that deserialized built-ins (obtained by
KotlinBuiltIns.getInstance()) are consistent with lazy resolved built-ins. This
test would break because while DescriptorRenderer renders pretty function types
it compares descriptors to the ones from KotlinBuiltIns, but in case of lazy
resolve descriptors created for built-ins would be different from
KotlinBuiltIns, so renderer wouldn't correctly render a function type
2014-01-31 16:46:18 +04:00
Alexander Udalov
877d9f2220
Update year to 2014 in generated files
2014-01-31 16:46:16 +04:00
Alexander Udalov
75ab8ac5ec
Don't try to generate optimized "in" for LongRange
...
#KT-4097 Fixed
2014-01-31 16:46:14 +04:00
Nikolay Krasko
7546a6dc41
Suppressing warnings + update copyright date
2014-01-31 14:52:13 +04:00
Andrey Breslav
7a6657d2e8
Resolve sessions use exception tracking from StorageManager
2014-01-30 21:03:53 +04:00
Andrey Breslav
26ecf7666d
Wrap storage manager inside resolve session
2014-01-30 21:03:53 +04:00
Andrey Breslav
210827b1d5
ExceptionUtils rewritten in Kotlin
2014-01-30 21:03:53 +04:00
Andrey Breslav
d0787795b6
StorageManager supports centralized exception handling
2014-01-30 21:03:52 +04:00
Evgeny Gerashchenko
abf352cebd
KT-4485 getGenericInterfaces vs getInterfaces for kotlin classes
...
#KT-4485 fixed
2014-01-29 17:57:50 +04:00
Andrey Breslav
6a29c38e5b
Components across the project use StorageManager
2014-01-29 15:38:44 +04:00
Andrey Breslav
707255eef6
Automatic toString() for LockBasedStorageManager
2014-01-29 15:34:50 +04:00
Natalia Ukhorskaya
4dbcb256d3
Add JetDiagnosticTest with stdlib
2014-01-28 18:21:46 +04:00
Natalia Ukhorskaya
36810c5bbb
Move IS_PURE for constant inside CompileTimeConstant
2014-01-28 18:21:45 +04:00
Natalia Ukhorskaya
3f429116e5
Add constructor parameter for compileTimeConstant (can be used in annotation)
2014-01-28 18:21:44 +04:00
Natalia Ukhorskaya
fd3f852a93
Annotation parameter must be constant on vararg and array arguments
2014-01-28 18:21:43 +04:00