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
ae348a0547
Nested packages visibilities in jvm-backend.
2012-08-29 15:58:29 +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
a28d78974b
Test data minor change.
...
Remove open for enum class (should be prohibited).
2012-08-29 15:58:24 +04:00
Pavel V. Talanov
9295ce7086
LoadCompiledKotlinCustomTest -> LoadKotlinCustomTest.
...
The test itself is enhanced so it loads descriptors from source and from binaries.
Test data changed according to latest frontend changes.
2012-08-29 15:58:21 +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
Alexander Udalov
d99ffbd120
jet.Annotation
...
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
#KT-1620 Fixed
2012-08-27 20:44:43 +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
Pavel V. Talanov
b228fd66e0
Enum entry has final modality when loaded from binaries.
2012-08-27 15:52:34 +04:00
Andrey Breslav
c0c2ca0ac2
Report errors when iterator() returns a nullable type
2012-08-24 19:49:33 +04:00
Andrey Breslav
66faa0c03a
For-loop range expression (collection) can not be null
2012-08-24 19:49:33 +04:00
Andrey Breslav
1d01e66fc8
Tests for multi-decl for-loops over arrays of primitives
2012-08-24 19:49:32 +04:00
Andrey Breslav
707408b241
For loops over arrays generated with multi-decl support
2012-08-24 19:49:32 +04:00
Andrey Breslav
d5c44c3dd8
Test data moved
2012-08-24 19:49:32 +04:00
Andrey Breslav
edbc832861
Multi-decl for loops fixed
2012-08-24 19:49:32 +04:00
Andrey Breslav
e57e61ac68
For-loop generation rewritten for the case of explicit iterator usage
...
This implementation includes multi-declarations already, but tests are coming in the next commits.
Old ForLoopgenerator renamed to IntrinsicForLoopGenerator, and will be unified with the newly introduced interface soon.
Side-effect:
KT-2668 Codegen doesn't handle member extensions in for
#KT-2668 Fixed
2012-08-24 19:49:31 +04:00
Andrey Breslav
b1ba3e1260
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating in-expressions
2012-08-24 19:49:30 +04:00
Andrey Breslav
9ca49b50b8
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating when() conditions
2012-08-24 19:49:30 +04:00
Svetlana Isakova
0dcdaccad1
KT-2640 Provide jet.MutableIterator and jet.MutableIterable
...
#KT-2640 fixed
2012-08-24 15:07:24 +04:00
Nikolay Krasko
1a12ef9e07
Recover on EOL for imports
2012-08-24 00:13:16 +04:00
Pavel V. Talanov
baca087a02
Rename test data folder according to the new test naming convention.
2012-08-23 15:24:39 +04:00
Pavel V. Talanov
9dc611c4fe
Get rid of LoadJavaDescriptorsTest.
...
Implement the same test via existing LoadJavaDescriptorsTest.
Move test data.
2012-08-23 15:24:37 +04:00
Svetlana Isakova
ac39daace6
KT-2667 Support multi-declarations in for-loops in control flow analysis
...
#KT-2667 fixed
2012-08-23 14:25:13 +04:00
Svetlana Isakova
f8edaad420
make modality 'FINAL' for non-class members
...
not depend on actual modifier since it's not legal there
2012-08-22 20:42:35 +04:00
Svetlana Isakova
bac0078646
check modifiers for package declarations
...
removed specific errors for illegal 'abstract' modifier
2012-08-22 20:42:35 +04:00
Svetlana Isakova
4a5269bb2d
set LOCAL visibility for local functions
...
(it can't be INHERIT)
2012-08-22 20:42:35 +04:00
Svetlana Isakova
ea611cb51d
check modifiers for local declarations
2012-08-22 20:42:35 +04:00
Alex Tkachman
fb5bf2f8c6
local classes without closures
2012-08-22 18:40:37 +03:00
Andrey Breslav
0cc27c0176
Use generic invokeFunction() instead of ad-hoc one for in-range conditions in when
2012-08-22 17:07:52 +04:00
Natalia.Ukhorskaya
3d9ad3f6cb
ExpressionCodegen: take EnumEntry type from containingDeclarationDescriptor
...
JavaDescriptorResolver: pass to propertyDescriptor correct value of isObject parameter
2012-08-22 14:32:01 +04:00
Svetlana Isakova
b7966f4512
test fixed
2012-08-22 13:41:27 +04:00
Svetlana Isakova
5779ac15c0
Not get supertypes of Nothing
...
(exception EA-37833)
2012-08-22 12:35:06 +04:00
Natalia.Ukhorskaya
2c4960b4fb
Test for abstract function in java enum.
2012-08-21 21:40:51 +04:00
Natalia.Ukhorskaya
2e5d18c440
Tests for loading enum descriptors from compiled java/kotlin code.
2012-08-21 21:40:48 +04:00
Natalia.Ukhorskaya
6920e497d5
JetDiagnosticsTest for using java enum in kotlin.
2012-08-21 21:40:47 +04:00
Andrey Breslav
5b77210c95
KT-2632 Check multi-declaraions in for-loops
...
#KT-2632 Fixed
2012-08-21 19:49:26 +04:00
Andrey Breslav
af85c99ffd
KT-2627 Parse for with multiple range variables
...
#KT-2627 Fixed
2012-08-21 19:10:29 +04:00
Svetlana Isakova
47362bf2ac
KT-2633 Support multiple assignment in JVM Back-end
...
#KT-2633 Fixed
2012-08-21 16:32:19 +04:00
Alexander Udalov
ed1f22111b
line number codegen tests
2012-08-21 16:31:29 +04:00
Pavel V. Talanov
b36873bf6d
Class object always have name of the form <class-object-for-ClassName>.
2012-08-21 15:32:44 +04:00
Alex Tkachman
354b61d9b5
Merge pull request #121 from goodwinnk/EA-35963
...
Test for EA-35963 (http://ea.jetbrains.com/browser/ea_problems/35963 )
2012-08-20 08:22:15 -07:00
Svetlana Isakova
8860bab9f1
KT-2643 Support multi-declarations in Data-Flow analysis
...
#KT-2643 fixed
2012-08-20 18:48:09 +04:00
Svetlana Isakova
f817eba7aa
removed check for 'hasNext' val in frontend
2012-08-20 16:05:16 +04:00
Andrey Breslav
ecd1c17e47
Report type mismatch for component functions
2012-08-17 22:04:35 +04:00
Andrey Breslav
306c27a9bb
Report error on local variables having no initializer and no type annotation
2012-08-17 22:04:35 +04:00
Andrey Breslav
2dc6691c1a
DataFlowInfo taken into account when resolving component functions
2012-08-17 22:04:35 +04:00
Andrey Breslav
b44c6f2d6e
Tests for redeclarations with multi-decls
2012-08-17 22:04:35 +04:00
Andrey Breslav
409e474748
Component functions are indexed 1-based
2012-08-17 22:04:35 +04:00
Svetlana Isakova
a0da232ed3
KT-2631 Check multiple assignment - in progress
...
check multiple declaration without specified type annotation
2012-08-17 22:04:34 +04:00
Andrey Breslav
86e40073c5
KT-2625 Parse multiple assignment to variables
...
New PSI element types introduced.
Parsing procedure for properties reused.
Extra syntactic elements (receiver, type) are prohibited in the parser
#KT-2625 Fixed
2012-08-17 22:04:33 +04:00