Commit Graph

1674 Commits

Author SHA1 Message Date
Evgeny Gerashchenko e6c047b2e0 Added tests with FilenameFilter (several arguments). 2013-03-27 19:19:56 +04:00
Evgeny Gerashchenko 461bfec45d Added FileFilter to mock JDK. 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko 835c0f85c7 Supported SAM constructors in codegen (simplest case). 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko f43631377b Updated test data. 2013-03-27 19:19:53 +04:00
Evgeny Gerashchenko 2718f7698c Basic support for resolving top-level SAM interfaces. 2013-03-27 19:19:53 +04:00
Mikhael Bogdanov ad4eeb3f8a Properly capture local functions
Local functions in local classed wasn't captured properly
2013-03-27 15:57:27 +04:00
Mikhael Bogdanov 932c1444a2 Fix for local closures 2013-03-26 15:43:25 +04:00
Natalia.Ukhorskaya c6e934169f Add method isLocalClass to JetPsiUtil 2013-03-25 17:39:55 +04:00
Evgeny Gerashchenko d0e736e5a6 Updated test data. 2013-03-22 17:35:34 +04:00
Evgeny Gerashchenko d194d4d877 Updated test data. Unit -> jet.Unit. 2013-03-22 16:38:26 +04:00
Evgeny Gerashchenko 5ccbce6de6 Got rid of "tuple" word all over the code. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko 7dee1c1814 Removed test data and generator for test which is "temporarily" disabled. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko f181907b9c Got rid of code depending on Unit aliasing. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko 66e7a0110c Updated test data and stdlib code which dependent on Tuple0/Unit
aliasing.
2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko 8a021abaa5 Renamed Tuple0 to Unit, removed aliasing. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko 3f88fa4a45 Removed Tuples.jet. 2013-03-22 16:38:23 +04:00
Evgeny Gerashchenko 84bc74894a Always parsing tuples as errors. 2013-03-22 16:37:16 +04:00
Evgeny Gerashchenko 7bfa4a9c09 Removed tuples from PSI tests. 2013-03-22 16:37:16 +04:00
Evgeny Gerashchenko ffb67d3a1f Removed tuples from type checker test. 2013-03-22 16:37:15 +04:00
Andrey Breslav 3bd202de84 Allow to call += on a val 2013-03-21 21:21:54 +04:00
Andrey Breslav f4def581f2 Merge pull request #231 from lopekpl/KT-831
KT-831 parser recovering when missing parameter
2013-03-21 07:22:03 -07:00
Mikhael Bogdanov 79bf174e93 Warning for unused function literal in do..while 2013-03-20 20:50:06 +04:00
Mikhael Bogdanov 93b860e4ad Always generate getter and setter 2013-03-20 20:50:06 +04:00
Mikhael Bogdanov 5bed6c296d Test update after "Refactoring: code duplication removed from accessor generators" and "Properly resolve descriptors from compiled kotlin" fixes 2013-03-20 20:50:06 +04:00
Mikhael Bogdanov d9fd04dd43 Refactoring: code duplication removed from accessor generators 2013-03-20 20:50:05 +04:00
Mikhael Bogdanov 86f5114b7d Properly resolve descriptors from compiled kotlin
Added protected flag for annotation
2013-03-20 20:50:05 +04:00
Svetlana Isakova df230d36c2 complete nested calls for array set expression correctly 2013-03-20 17:27:45 +04:00
Wojciech Lopata 3b6ada239c KT-831 parser recovering when missing parameter
#KT-831 fixed
2013-03-20 13:17:35 +01:00
Svetlana Isakova 1b1ee18f97 KT-3395 mapOf function can't be used as literal
#KT-3395 Fixed
2013-03-19 16:47:22 +04:00
Alexander Udalov 7cc1ed5cb1 Add regression test for KT-3413 2013-03-18 14:52:29 +04:00
Alexander Udalov 242b97febf Fix mapGetterSignature/mapSetterSignature
In case of TRAIT_IMPL the incorrect this was written. Reuse the code from the
common mapSignature

 #KT-3413 Fixed
2013-03-15 22:03:39 +04:00
Alexander Udalov a9776016a9 Resolve static methods of enum in front-end
Up to this point, front-end did not suspect that there could be classes which
have both a class object and a package for static members. Since this became
possible for enums loaded from Java binaries (enum entries and valueOf()/
values() are placed into the class object, and every other static member into
the package), we adjust the corresponding scope to also include members from
the corresponding package

 #KT-2990 Fixed
2013-03-15 16:00:57 +04:00
Alexander Udalov 7368ca09b9 Resolve static enum members from compiled Java
For static members, a corresponding package is now created for every enum, as
it's done for every other class. All static members of enum classes are
resolved into the package, EXCEPT its enum entries, valueOf() and values()
methods, which are put into the enum's class descriptor.
2013-03-15 16:00:56 +04:00
Alexander Udalov 68844131b0 Fix broken isEnumClassObject methods
Out of three methods, two were incorrect
2013-03-15 16:00:55 +04:00
Evgeny Gerashchenko 82bff79c64 Adding nested classes in mock JDK automatically. 2013-03-14 20:49:44 +04:00
Evgeny Gerashchenko ddd0c07c2d Restored members which were present in mock JDK, but not in generation script. 2013-03-14 20:49:43 +04:00
Evgeny Gerashchenko 735f06e78f Added test for KT-334 Can't use java.lang.Comparable by the short name
#KT-334 obsolete
2013-03-14 20:49:41 +04:00
Evgeny Gerashchenko be30716076 Test for KT-2017 Cannot sort list with no comparator
#KT-2017 obsolete
2013-03-14 20:49:41 +04:00
Evgeny Gerashchenko 7f583cc798 Moved remaining case in LoadJavaCustomTest to generated one.
Supported multi-file cases.
2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko cc1d392fd2 Removed outdated test case. 2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko f23327458f Wrapped annotations test data so it will be processed by namespace comparator correctly. 2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko 0f5de451ec Moved all but one test cases from AnnotationJDRTest to loadJava. 2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko b8abd0eb94 Rendering annotation argument types when verbose. 2013-03-12 20:40:19 +04:00
Evgeny Gerashchenko 05e29af792 Merged static members test into LoadJava. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko d76de90931 Moved javaAgainstKotlin cases to generated test. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko a0b780c7bb Moved sourceJava cases to generated test. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko 6c59eedc48 Organized compiledJava test data. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko fd2d5975e4 Fixed useless hidden import & useless simple import diagnostics when Java class is resolved as both class and namespace. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko e943b9c9ab Moved compiledJava cases to generated test. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko 189b043c8d Moved loadJava "general" tests to subdirectory. 2013-03-12 19:31:45 +04:00