Commit Graph

66 Commits

Author SHA1 Message Date
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
Andrey Breslav f78d26c89a java.lang.Object methods included into tests' output 2012-07-27 20:16:57 +04:00
Andrey Breslav 2923c1f32e Simple LR Tests don't need to compare all the packages in the world 2012-07-26 17:41:46 +04:00
Andrey Breslav 69e1b8d407 More test data for LR 2012-07-23 19:38:27 +04:00
Andrey Breslav 05ad042710 LR: Newly supported test data 2012-07-23 19:38:27 +04:00
Andrey Breslav 1eefbd4c75 Test data updated in accrdance with recent logic chnages in OverrideResolver 2012-07-23 19:38:26 +04:00
Andrey Breslav 46737dfb11 Don't create constructors for traits 2012-07-23 16:41:23 +04:00
Andrey Breslav ea7e7f01fb Qualified "this" supported by lazy resolve:
- Appropriate scope methods implemented
- Class declarations recorded in the binding trace
2012-07-23 13:43:35 +04:00
Andrey Breslav 2a3ffed228 LR: Newly passed test data added 2012-07-20 14:19:58 +04:00
Andrey Breslav ecf5f8228c Test data for newly passing tests 2012-07-20 11:50:04 +04:00
Andrey Breslav 1f4783efb3 LR: Class objects are only allowed in a static context 2012-07-19 18:38:29 +04:00
Andrey Breslav ba75c0ca04 Test data for now passing tests 2012-07-19 18:12:37 +04:00
Andrey Breslav 3403e6c95d Proper scoping for inner classes: they must shadow outer classes 2012-07-19 18:12:12 +04:00
Andrey Breslav 8c1fd5e9c7 LR: Class object of an enum class doesn't carry type parameters 2012-07-19 17:22:10 +04:00
Andrey Breslav c91af010e1 Class descriptors with kind OBJECT are always final 2012-07-19 17:19:53 +04:00
Andrey Breslav bd5eb0c2b5 Missing test data file 2012-07-19 17:19:02 +04:00
Andrey Breslav 2ce0ddea8d Test data for newly passing tests 2012-07-19 17:09:58 +04:00
Andrey Breslav 4c71624997 LR: Delegation supported 2012-07-19 17:09:58 +04:00