Svetlana Isakova
c03190910c
test change
...
returned check for unimported reference to test
2012-09-10 20:15:20 +04:00
Svetlana Isakova
b2b3d6273e
improved test
2012-09-10 20:15:20 +04:00
Svetlana Isakova
cd5521d6dc
rename error
2012-09-07 19:03:07 +04:00
Alexander Udalov
67211fde40
Check componentN functions for overload conflicts
2012-09-07 19:00:05 +04:00
Alexander Udalov
fbeaaf5fbb
Check componentN functions for override conflicts
...
Check if newly generated component functions happen to override something
which they're not supposed to.
Create new slice to store mapping from annotation descriptors to
corresponding PSI elements, which is used by override checker to report
errors in data classes on.
2012-09-07 19:00:04 +04:00
Alexander Udalov
c29312043c
Refactor OverrideResolver.checkOverrideForMember()
...
Create CheckOverrideReportStrategy interface to report override errors
(will be used later for synthesized members override checks).
Add diagnostic test on OVERRIDING_FINAL_MEMBER, as no such test happened
to exist before.
2012-09-07 19:00:04 +04:00
Alexander Udalov
b93db69a24
Resolve "componentN" functions for data classes
...
Reuse existing (but not used) VALUE_PARAMETER_AS_PROPERTY in
BindingContext to store mapping from constructor's value parameters to
property descriptors.
Create a new slice DATA_CLASS_COMPONENT_FUNCTION to store mapping from
constructor's value parameters to generated componentN functions.
2012-09-07 19:00:01 +04:00
Andrey Breslav
b46187a560
KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
...
#KT-2739 Fixed
2012-09-07 18:24:22 +04:00
Kirill Berezin
454ad48d5b
added one more test to check if overrides are resolved correctly
2012-09-06 20:28:58 +04:00
Kirill Berezin
1061e1ef69
do not generate delegates when the class already has such method either declared or delegated (report an ambiguity in this case)
...
Merge conflict resolved by committer
2012-09-06 20:27:43 +04:00
Natalia
4303083945
KT-322 Prohibit inheriting classes from enums
...
#KT-322 Fixed
2012-09-06 17:24:37 +04:00
Natalia
07cf73ecef
KT-2697 Prohibit enum inheritance
...
#KT-2697 Fixed
2012-09-06 17:24:36 +04:00
Svetlana Isakova
ef490ba8f1
test fixed after merge
2012-09-05 18:55:19 +04:00
Svetlana Isakova
7c828b9ff7
diagnostic tests changes after collections mapping
2012-09-05 18:55:16 +04:00
Svetlana Isakova
31831f2433
added 'class has Kotlin analog' error
...
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Svetlana Isakova
a3194e9a46
removed unnecessary import jet.Iterator
2012-09-05 18:55:16 +04:00
Svetlana Isakova
726bcb5465
KT-2606 Filter java.util.* import
...
#KT-2606 fixed
added FilteringScope
2012-09-05 18:55:16 +04:00
Svetlana Isakova
d642d2266b
KT-2641 Warn on using j.l.Iterable in Kotlin code
...
#KT-2641 fixed
2012-09-05 18:55:16 +04:00
Andrey Breslav
d4cdbbccff
DataFLowInfo doesn't flow from when-checks
2012-09-05 14:18:41 +04:00
Andrey Breslav
a267f65fa1
Front-end test data fixed to have no complex patterns
...
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Andrey Breslav
c027b4149b
Test for KT-2529 Support importing enum members using wildcard
...
#KT-2529 Fixed
2012-08-31 14:38:54 +04:00
Andrey Breslav
859dbc87d4
Fix CANNOT_CHECK_FOR_ERASED for when()
2012-08-31 14:23:02 +04:00
Natalia.Ukhorskaya
dd3323cae2
Fixed KT-2418 Front-end allows enum constants with same name
2012-08-31 11:16:35 +04:00
Natalia.Ukhorskaya
1ef8818556
Front-end: Prohibit to create inner class with the same name as a property
2012-08-31 11:15:57 +04:00
Kirill Berezin
b84f068c33
kt-1760 delegation to java iface:
...
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04:00
Nikolay Krasko
03989b9055
EA-36935 Rewriting annotations exception when file contains object with annotation.
2012-08-30 13:21:06 +04:00
Andrey Breslav
7caa1b8aa4
KT-2364 Drop traces of constructor-entries in enums
...
#KT-2364 Fixed
2012-08-29 22:07:42 +04:00
Pavel V. Talanov
22be002ef4
Remove enums inheriting from enums from test data.
2012-08-29 16:00:50 +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
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
Svetlana Isakova
0dcdaccad1
KT-2640 Provide jet.MutableIterator and jet.MutableIterable
...
#KT-2640 fixed
2012-08-24 15:07:24 +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
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
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
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