Commit Graph

8790 Commits

Author SHA1 Message Date
Nikolay Krasko f28a4c5464 Proof test for recursion in lazy resolve when classes and properties are trying to be imported into file scope 2012-12-03 15:17:25 +04:00
Nikolay Krasko 5368e8cef3 Process imports for functioncs and properties in creating scope for file
during lazy resolve

Fix for "KT-3096 No completion in function literal" and "KT-3102 No
completion/auto-import for an extension method"

 #KT-3102 Fixed
 #KT-3096 Fixed
2012-12-03 15:17:24 +04:00
Andrey Breslav c9921a3699 Update for IDEA 123.45 2012-12-03 14:06:46 +04:00
Andrey Breslav 08a150b09e Don't run the builder if there's no dirty files 2012-12-03 14:06:46 +04:00
Natalia.Ukhorskaya ef52ce6b9b J2KTranslator: remove findRtJar method. Use PathUtil instead 2012-11-29 18:21:14 +04:00
Evgeny Gerashchenko 00873b6e8c Reverted loading arrays from java with 'out' projection kind as return value.
#KT-3065
2012-11-29 17:02:43 +04:00
Alexander Udalov fd0251729b Optimize primitive comparison operators codegen
They're no longer generated via intrinsics
2012-11-28 20:58:59 +04:00
Alexander Udalov fad9169005 Remove suspicious code from intrinsics 2012-11-28 20:17:01 +04:00
Nikolay Krasko 2dafbdc45a Ask for external annotation only while looking for nullability or kotlin signature annotation 2012-11-28 19:21:33 +04:00
Alexander Udalov c9bdfd2f07 Generate compareTo() properly
Take into account:
1) resolved call to compareTo (instead of always calling Comparable's method)
2) types of both caller and callee, when primitive, to avoid wrong casting
(instead of always using caller's type)

 #KT-3078 Fixed
2012-11-28 17:45:38 +04:00
Alexander Udalov 0c5960922a Refactor StackValue.coerce() 2012-11-28 17:41:38 +04:00
Alexander Udalov 9eecf22e15 Booleans are no longer Comparable 2012-11-28 17:41:36 +04:00
Alexander Udalov b23601eefe EA-40964
Don't access elements of an empty array
2012-11-28 17:41:35 +04:00
Andrey Breslav 9dd167a760 Duplicating method removed from stdlib 2012-11-28 16:05:48 +04:00
Evgeny Gerashchenko d487f754cd Prevented copyrights from appearing in testData. 2012-11-28 15:27:57 +04:00
Evgeny Gerashchenko a773b8426e Removed copyrights from Java test data. 2012-11-28 15:23:55 +04:00
Evgeny Gerashchenko 6aef746d30 Renamed data -> testData in integration-tests. 2012-11-28 15:20:56 +04:00
Evgeny Gerashchenko b9b87d894a Asserting parameters in overridability assert, as well. 2012-11-28 15:08:58 +04:00
Evgeny Gerashchenko f53f3e17c9 Fixed problems in jdk-annotations. 2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 88bf3d9298 Processing vararg flag of parameter for primitives and wrappers.
#KT-2776 fixed
2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 6375ea89a0 Supported propagation of upper bounds of method type parameters.
#KT-2776 in progress
2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko efc67f3d89 Rewritten CheckLoadVariablesTableTest to test generation framework. 2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 4252b3bca7 Invoke reportError() instead of passing function all the time
Using superFunctions field instead of passing it as parameter.
2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko e761d69e9c Changed API of SignaturesPropagationData. 2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko 914db59ea0 Renamed SignaturesPropagation to SignaturesPropagationData. 2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko caad1c20a2 Substituting type parameters when checking alt signature. 2012-11-28 15:08:57 +04:00
Evgeny Gerashchenko f4c1722a46 Extracted method creating copy of type parameters (to reuse in SignaturesPropagationData). 2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 8d7de5d063 Supported checking for changing signature in submethods.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko dd671313c5 Supported propagation of vararg mark.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 4df311366d Added test for propagation of projection kind.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 795b3bfbe0 Supported propagation of mutability in parameter position.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko a937d6be91 First converting classifier, and then process arguments. 2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 4da03f75f9 Supported simplest case of signatures propagation in value parameter position.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00
Evgeny Gerashchenko 6530d48785 Passing super functions instead of method and trace to modifyReturnTypeAccordingToSuperMethods. 2012-11-28 15:08:55 +04:00
Evgeny Gerashchenko 5b6828a7ce Fixed syntax error in @KotlinSignature. 2012-11-28 15:08:55 +04:00
Andrey Breslav 304926005f Proper errors for cases like 'is Map' supported in 'when' 2012-11-27 21:15:37 +04:00
Nikolay Krasko 85f7b4069f Clean up test data after end of the test 2012-11-27 17:32:49 +04:00
Natalia.Ukhorskaya 673eba662d System property kotlin.jps.test may be null 2012-11-27 16:48:36 +04:00
Andrey Breslav 6f4afd675f A quick fix for 'Raw type in is-expression' 2012-11-27 16:47:39 +04:00
Andrey Breslav af682d61f0 Typo fixed 2012-11-27 16:47:38 +04:00
Andrey Breslav dff5f382ab Special diagnostics when no type arguments passed on teh right-hand side of 'is' expression
Example:

if (a is Map) // ERROR: Say 'Map<*, *>' if you don't want to pass type arguments
2012-11-27 16:47:38 +04:00
Natalia.Ukhorskaya 1378f836f5 Rename test projects for jps plugin. Do not lowercase first letter in project name 2012-11-27 15:34:36 +04:00
Andrey Breslav f17a7df6d9 Fix <get> for old Ant 2012-11-27 15:24:00 +04:00
Alexander Udalov b7a4349827 Remove unused scripts 2012-11-27 15:00:19 +04:00
Natalia.Ukhorskaya 74ca357502 Add tests for jps plugin 2012-11-27 14:54:18 +04:00
Natalia.Ukhorskaya c21f52127c Change wildcard resource pattern 2012-11-27 14:49:11 +04:00
Natalia.Ukhorskaya de45f2e8f7 Add jps test for Android 2012-11-27 14:49:10 +04:00
Alexander Udalov 8a33e1d6b2 Fix kotlinc on Cygwin
Do not convert KOTLIN_HOME back to unix format, since it's passed to Win
version of Java, which doesn't understand /cygdrive/.. paths

 #KT-3049 Fixed
2012-11-27 13:33:57 +04:00
Alexander Udalov 5e40423de3 Convert CRLF to LF in kotlinc on Windows
Cygwin wouldn't start the script with a CR in it.
.bat files are kept as is, since they are purely Win-specific
2012-11-26 22:28:10 +04:00
Alexander Udalov 3cd41b2503 Update to jline 2.9
Fixes console problems after :quit from REPL on the latest Ubuntu
2012-11-26 21:48:15 +04:00