Commit Graph

9907 Commits

Author SHA1 Message Date
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 b96df65733 Reformatted Code. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko d9abbcf288 Minor. Reused tmpdir. 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 619e2d4210 Don't complete packages for Java static classes in package directive. 2013-03-12 20:39:31 +04:00
Evgeny Gerashchenko 2eb15039a4 Added namespace classes to Java static member scope. 2013-03-12 19:31:47 +04:00
Evgeny Gerashchenko 11dfcab3ca Minor. Simplified code. 2013-03-12 19:31:47 +04:00
Evgeny Gerashchenko 6508f88552 Removed redundant code. 2013-03-12 19:31:47 +04:00
Evgeny Gerashchenko e943b9c9ab Moved compiledJava cases to generated test. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko b109a104f1 Minor. Added assert message. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko 0318fd76c0 Reused method. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko cb0b76dc74 Replace pair parameter with pair of parameters. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko c7df5c2862 Reduced visibility of methods. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko 7a91e098f8 Subclassed from AbstractLoadJavaTest and moved all common code there. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko eb913affba Subclassed LoadJavaCustom from same class as AbstractLoadJavaTest (for moving test method). 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko 9e1c0ea16e Updated generated tests according to moving general load Java tests to subdirectory. 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
Evgeny Gerashchenko 7336ec8781 Converted anonymous to inners. 2013-03-12 19:31:45 +04:00
Evgeny Gerashchenko c87ed690d7 Removed redundant assert. 2013-03-12 19:31:45 +04:00
Evgeny Gerashchenko 030a0aeca3 Make TaskPrioritizer not abstract, added private constructor. 2013-03-12 19:31:45 +04:00
Nikolay Krasko 8d860827cf KT-2874 Exception in front-end when extending Java class
#KT-2874 Fixed
2013-03-12 16:17:36 +04:00
Alexander Udalov e8088ec6a7 Write correct InnerClasses attribute to class files
InnerClasses should contain entries for every inner and every outer class,
according to the JVMS

 #KT-3390 Fixed
2013-03-12 14:57:14 +04:00
Alexander Udalov 656f4e2f26 Minor refactoring of writeOuterClass() 2013-03-12 14:57:13 +04:00
Svetlana Isakova 7b6dfc3470 small fix while choosing maximally specific
return success if there is one candidate after filterOverrides step
 #KT-1461 fixed
2013-03-11 14:54:16 +04:00
Andrey Breslav 9d05a4548c Merge pull request #223 from leftylink/init_without_ctor
Change ANONYMOUS_INITIALIZER from _WITHOUT_CONSTRUCTOR to _IN_TRAIT
2013-03-11 03:19:28 -07:00
Zalim Bashorov e53270ad3f Fixed ECMAScript3 implementation of Kotlin.$new.
Added bind polyfill.
2013-03-11 13:13:54 +04:00
Andrey Breslav 7259ec2f94 Merge pull request #225 from sigito/patch-1
#KT-3381 fixed.
2013-03-11 02:03:24 -07:00
Yurii Samsoniuk b39d3bec5a #KT-3381 fixed.
Corrected documentation misspelling.
2013-03-09 15:32:50 +02:00
Peter Tseng cd56678467 Change ANONYMOUS_INITIALIZER from _WITHOUT_CONSTRUCTOR to _IN_TRAIT
"since we made all classes have constructors some time ago", this error
doesn't even trigger on a class such as:
class testClass { {} }
It does trigger on a trait:
trait testTrait { {} }

Therefore, the error message should be changed to reflect the new
behavior.
However, an actual quickfix for this will be more involved. It is not a
good idea to simply delete the initializer, since it could contain
valuable code that the user wants to keep.
2013-03-08 02:11:58 -05:00
Natalia.Ukhorskaya 6f31fd7bd4 EA-43630 - assert: JavaAnnotationResolver.resolveAnnotation 2013-03-07 15:34:40 +04:00
Natalia.Ukhorskaya 6bea9999d5 Introduce variable does something really strange for expression in square brackets
#KT-2490 Fixed
2013-03-07 15:34:39 +04:00
Svetlana Isakova d5b5fe8503 added @NotNull annotations 2013-03-07 13:11:22 +04:00
Svetlana Isakova 4d4fd5885d store constraint system without expected type constraint
for easier 'type inference expected type mismatch' reporting
2013-03-07 13:11:22 +04:00
Svetlana Isakova 54cd8c82a3 refactoring
unite two similar methods (replaceTypeVariables, copy)
2013-03-07 13:11:22 +04:00
Svetlana Isakova 12d8a90b3e invoke equalsOrContainsAsArgument
instead of dependsOnTypeConstructors
2013-03-07 13:11:22 +04:00
Svetlana Isakova 87592e5141 rename 2013-03-07 13:11:22 +04:00
Svetlana Isakova d7412ecd9f fixed test data
type mismatch with nothing (after change in ConstraintSystemImpl)
render 'CANT_INFER' type as '???'
2013-03-07 13:11:21 +04:00
Svetlana Isakova 1d55e359a5 complete type inference(*) for variable as function call as well
* dependent on expected type
+ get rid of instanceof ResolvedCallImpl check
2013-03-07 13:11:21 +04:00
Svetlana Isakova fe82ea5464 reverted: adopt to broken inference 2013-03-07 13:11:21 +04:00
Svetlana Isakova 0530df6f7b use TypeCheckingProcedure for generating constraints
(in ConstraintSystemImpl)
2013-03-07 13:11:21 +04:00
Natalia.Ukhorskaya 871caaaa2d Fix android tests 2013-03-07 12:27:02 +04:00
Natalia.Ukhorskaya 3cb3f00562 IDE: folding imports 2013-03-07 12:25:47 +04:00
Zalim Bashorov 220682afe2 fixed mapping sort and max functions from java.util.Collections 2013-03-06 19:16:14 +04:00