Commit Graph

354 Commits

Author SHA1 Message Date
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
Svetlana Isakova ffc256f805 test for obsolete task
#KT-1358 fixed
2012-08-17 15:10:34 +04:00
Svetlana Isakova d2e33c8900 tests for obsolete/fixed issues
#KT-1038 fixed
 #KT-1127 fixed
 #KT-1145 fixed
 #KT-1410 fixed
 #KT-1718 fixed
 #KT-2286 fixed
 #KT-1431 fixed
 #KT-2394 fixed
2012-08-16 18:39:24 +04:00
Svetlana Isakova df93a26839 use kotlin Iterable/Iterator
instead of java Iterable/Iterator
in Kotlin code in tests
2012-08-16 18:39:23 +04:00
Svetlana Isakova e1281953e7 tests changed
val hasNext -> fun hasNext()
2012-08-16 18:39:23 +04:00
Svetlana Isakova 65ddcd0473 No repeat 'many impl member not implemented' error
in a subclass if there is one in a superclass
2012-08-16 18:39:23 +04:00
Svetlana Isakova 6e67bd64fa test for KT-2407
#KT-2407 fixed
2012-08-16 18:39:22 +04:00
Andrey Breslav ee5f598836 Wrong test data fixed (previously commited by mistake) 2012-08-15 18:11:47 +04:00
Andrey Breslav 00305ba920 Fixing interdependency between delegation and fake overrides
Main changes sit in OverrideResolver::generateOverridesAndDelegationInAClass()

Now fake overrides AND delegation are generated for supertypes before any processing is done for subclasses.
2012-08-15 16:15:04 +04:00
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03:00
Svetlana Isakova 70c5a5ba9e KT-2505 Type mismatch: inferred type is T but T was expected
#KT-2505
2012-08-07 18:09:02 +04:00
Svetlana Isakova 9102622e02 more tests on type inference
#KT-2200 fixed
 #KT-2283 fixed
2012-08-07 18:09:02 +04:00
Svetlana Isakova 4b77e9b83a tests for obsolete tasks
#KT-2445 fixed
 #KT-2459 fixed
2012-08-06 18:18:27 +04:00
Svetlana Isakova f730c1357c KT-2484 Type inferred for function literal is (...) -> Int instead of (...) -> Unit, when function literal parameter is explicit
#KT-2484 fixed
2012-08-06 18:18:26 +04:00
Svetlana Isakova 679a678e7c choose the most specific candidate after type inference 2012-08-06 18:18:26 +04:00
Svetlana Isakova b24509577c added issue names in tests 2012-08-06 18:18:26 +04:00
Svetlana Isakova 036ce3c2e1 KT-2514 Type inference fails when using extension function literal
(check for bounds when inference is not complete added)
 #KT-2514 fixed
2012-08-06 18:18:26 +04:00
Svetlana Isakova 492d4da56d added variance handling to constraint system 2012-08-06 18:18:26 +04:00
Svetlana Isakova b5229b8b3d tests for type inference tasks added
#KT-742 fixed
 #KT-832 fixed
 #KT-943 fixed
2012-08-01 17:03:53 +04:00