Andrey Breslav
1933e30905
Test data split between compiledJava tests and compiledKotlin tests
...
Basically, this commit splits test data from the from java-txt-kt to two pairs java-txt and kt-txt.
This commit leads to some duplication in test data.
This is temporary: in the platform types branch the test data for LoadJava tests will be changed dramatically, so duplication will go away
2014-08-21 12:22:22 +04:00
Andrey Breslav
298ddcf0ad
Do not resolve annotation arguments when only a type is requested
...
This replaces the logic that always did complete constructor call resolution by a request to typeResolver when only a type is needed
2014-03-26 21:10:29 +04:00
Andrey Breslav
8be40c29cf
CYCLIC_INHERITANCE_HIERARCHY reworked
...
We do not try to recover too gracefully from a cyclic hierarchy any more:
we simply remove all the edges that belong to a cycle instead of intelligently finding one most convenient edge to cut.
This is done in both lazy and eager resolve to keep tests passing.
2014-03-17 21:55:15 +04:00
Natalia Ukhorskaya
df3ed5059c
StorageManager for compile-time initializer
2014-03-13 10:07:12 +04:00
Natalia Ukhorskaya
17259a052e
Write constant initializer for java properties
2014-03-13 10:07:11 +04:00
Alexander Udalov
f7b6457139
Replace "jet" package name with "kotlin" in testData
2014-03-02 19:55:26 +04:00
Evgeny Gerashchenko
5319c6e24c
LazyResolveNamespaceComparingTest → LazyResolveRecursiveComparingTest
2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko
e175ebf60a
Rendering package FQ names instead of short names.
2013-12-17 20:28:56 +04:00
Natalia Ukhorskaya
2a023c16a9
Use type from compile time value for prefix expression
2013-12-05 15:21:55 +04:00
Alexander Udalov
bd5eee5cc2
Put enum entries into enum in lazy resolve
2013-12-02 19:56:07 +04:00
Alexander Udalov
2967b69c4a
Update enum entry resolution strategy in lazy resolve
2013-12-02 19:56:05 +04:00
Alexander Udalov
26bd1ff189
Change object resolution strategy in lazy resolve
2013-12-02 19:55:20 +04:00
Alexander Udalov
e8089cc461
Synthetic class object of enum should always be public
...
#KT-2834 Fixed
2013-11-18 19:46:01 +04:00
Pavel V. Talanov
959ab2b20c
Enum class objects values and valueOf functions have kind SYNTHESIZED
2013-11-12 14:15:51 +04:00
Andrey Breslav
836eef67fa
Create proper annotation descriptors when annotation arguments don't match
2013-09-24 06:58:41 -07:00
Nikolay Krasko
828d57c2be
Annotation on object test
2013-09-11 12:01:33 +04:00
Nikolay Krasko
08b8f56740
Fix rewrite for ANNOTATION slice (EA-49336)
2013-09-11 12:01:32 +04:00
Nikolay Krasko
37cd7eb1ba
Allow resolve class declarations in class objects
...
Use INACCESSIBLE_OUTER_CLASS_EXPRESSION error for marking already resolved elements
#KT-3261 Fixed
2013-06-07 17:24:17 +04:00
Nikolay Krasko
31edd6f440
Make declarations from the current package be resolved before declarations in default package (EA-43715)
2013-05-01 16:53:33 +04:00
Michał Sapalski
7deec28b9c
Adjusted tests to the new DescriptorRenderer behaviour
2013-04-29 15:44:07 +04:00
Evgeny Gerashchenko
d194d4d877
Updated test data. Unit -> jet.Unit.
2013-03-22 16:38:26 +04:00
Evgeny Gerashchenko
7dee1c1814
Removed test data and generator for test which is "temporarily" disabled.
2013-03-22 16:38:25 +04:00
Nikolay Krasko
d4e3a4f74d
Tests added for checking two-phase (classes and functions) import resolution
2013-02-04 14:23:22 +04:00
Nikolay Krasko
ee227f01b9
Add test for checking ambiguity for root package and the same package
2013-02-04 14:23:21 +04:00
Nikolay Krasko
f2e78d9064
Create scope with lazy import resolve
2013-02-04 14:23:21 +04:00
Svetlana Isakova
9bd4ed2a8d
changed case for test file
2012-12-29 20:08:10 +04:00
Evgeny Gerashchenko
6fa36d330c
Regenerated test data.
2012-12-28 14:25:18 +04:00
Evgeny Gerashchenko
862a6ffbbc
Moved class object case to namespace comparing test.
2012-12-27 20:46:59 +04:00
Evgeny Gerashchenko
6ab081d969
Regenerated test data.
2012-12-27 20:46:58 +04:00
Evgeny Gerashchenko
5dec5a4c28
Regenerated all test data which uses NamespaceComparator.
2012-12-27 20:46:57 +04:00
Evgeny Gerashchenko
3cc61d070b
Removed obsolete stdlib-log.txt.
2012-12-27 20:46:56 +04:00
Evgeny Gerashchenko
778df8b1fd
Rendering annotations and visibility for class object.
...
Don't render modality for any object kind.
2012-12-27 20:46:55 +04:00
Evgeny Gerashchenko
7beb4fe10e
Rendering constructors in DescriptorRendererTest.
2012-12-27 20:46:52 +04:00
Evgeny Gerashchenko
5e5cd86194
Regenerated test data.
2012-12-20 18:48:47 +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
Pavel V. Talanov
c39a4dc57a
Change type of enum entry property
...
Now such properties have types corresponding to enum class not it's own enum entry classes
2012-11-21 19:49:49 +04:00
Pavel V. Talanov
c42380dc0b
Make enum entry classes have private visibility and properties have public vibility
...
Tests for backend are broken
2012-11-21 19:49:48 +04:00
Nikolay Krasko
4041d4d192
Remove ResolveSession.getResolutionScope() and extend usage of ScopeProvider.getResolutionScopeForDeclaration()
2012-09-18 19:26:57 +04:00
Evgeny Gerashchenko
c6a040a380
Removed sure() function from built-ins.
2012-09-17 18:00:22 +04:00
Alexander Udalov
c0dc1e6742
NamespaceComparator now serializes kind, if it's not DECLARATION.
...
Lots of test data changed to include members' kinds.
2012-09-07 19:00:08 +04:00
Pavel V. Talanov
d831f164cc
Enum classes have private constructor visibility from front-end point of view.
...
Protected visibility hardcoded in jvm backend.
2012-08-29 15:58:40 +04:00
Pavel V. Talanov
e6e6f7e598
Object's constructor is private from frontend point of view.
...
Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
2012-08-29 15:58:27 +04:00
Pavel V. Talanov
6a71d495dd
Constructors for enum entries and class objects have private visibility: test data changed.
2012-08-29 15:58:19 +04:00
Pavel V. Talanov
6132946ced
Introduce ClassKind#CLASS_OBJECT and ClassKind#isObject and usages.
...
Rename LazyClassDescriptor#onlyEnumEntries -> enumClassObjectInfo.
Determine ClassKind in JetClassInfo and JetObjectInfo constructor.
Remove complex constructor for enum entry in enum test.
Logic simplified in LazyClassMemberScope.
Minor refactorings.
2012-08-27 15:52:36 +04:00
Alex Tkachman
5947759684
proper compilation of enums
2012-08-13 22:37:27 +03:00
Andrey Breslav
8dd9225411
Object descriptors for enum entries created properly
2012-08-09 17:35:21 +04:00
Andrey Breslav
2386757e7c
Serializing inner objects in NamespaceComparator
...
+ duplicating test removed
2012-08-09 17:35:21 +04:00
Nikolay Krasko
fea73b3dce
getObjectDescriptors() for lazy classes
2012-08-08 17:37:38 +04:00
Nikolay Krasko
0faea1ed0b
Chain scope for merging in lazy package descriptor
2012-08-08 15:23:41 +04:00
Andrey Breslav
c02e54678e
Descriptors with error types can override each other
2012-07-27 20:16:57 +04:00