Commit Graph

9891 Commits

Author SHA1 Message Date
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
Zalim Bashorov dd7d584478 Added some tests for JS implementation of HashMap#values() (#KT-3035) 2013-03-06 19:16:14 +04:00
Natalia.Ukhorskaya 02c8989b2f Top level functions inside module should be invoked using package$src class 2013-03-06 16:22:52 +04:00
Natalia.Ukhorskaya 4d51572482 Extract method 2013-03-06 16:22:48 +04:00
Natalia.Ukhorskaya d501e8821c Move top level properties from package class to package$src 2013-03-06 16:22:44 +04:00
Natalia.Ukhorskaya 4bfdeffd0b Make getContainingFile return null if it isn't JetFile 2013-03-06 16:22:41 +04:00
Natalia.Ukhorskaya d9739fb5bb Remove usages of isMultiFileNamespace 2013-03-06 16:22:37 +04:00
Natalia.Ukhorskaya faf994d872 Generate package$src files for each package 2013-03-06 16:22:33 +04:00
Natalia.Ukhorskaya a9415204f6 Replace "." with "_" in package$src class name 2013-03-06 16:22:18 +04:00
Wojciech Lopata 75528e0a4a KT-3378 "Type mismatch on override" not present when the initializer is syntactically incorrect
#KT-3378 Fixed
2013-03-06 15:18:37 +04:00
Wojciech Lopata 09c3edcbc7 'hasSyntaxErrors' check moved from Diagnostic to PositioningStrategy
This makes possible to mark diagnostic errors when syntax error are present (by overriding isValid in PositioningStrategy subclasses).
2013-03-06 15:18:36 +04:00
Andrey Breslav 7e5794cc7f A common method extracted 2013-03-06 12:53:14 +04:00
Andrey Breslav 7107288f88 Injectors regenerated 2013-03-06 12:53:14 +04:00
Andrey Breslav deda45135e Generating imports after all usages were generated 2013-03-06 12:53:13 +04:00
Andrey Breslav 47d1ea2770 Migrated to Printer 2013-03-06 12:53:13 +04:00
Andrey Breslav ac981915a1 Imports are tracked when types are used 2013-03-06 12:53:10 +04:00
Andrey Breslav f7de41ea1b The rudimentary support for lazy injection removed 2013-03-06 12:52:49 +04:00