Commit Graph

8755 Commits

Author SHA1 Message Date
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
Alexander Udalov e97f53ce8d Don't output long comment every time in kotlinc on Windows
#KT-3048 Fixed
2012-11-26 19:37:05 +04:00
Alexander Udalov 32f30c89d0 Preserve spaces in kotlin home 2012-11-26 19:35:21 +04:00
Alexander Udalov 07ed31f90e Set executable permissions to kotlinc 2012-11-26 19:33:47 +04:00
Andrey Breslav c07306a7f2 Full paths for old Ant 2012-11-26 18:12:41 +04:00
Alexander Udalov 8e740a3ee4 Fix .put() for some stack values
#KT-3087 Fixed
2012-11-26 16:06:47 +04:00
Andrey Breslav bc7f2fd09b KT-2818 Show Parameters should show short type names instead of long
#KT-2818 Fixed
2012-11-26 15:25:19 +04:00
Nikolay Krasko 0207693cec Tune jline library pack
- Don't filter out properties files
- Don't filter out dlls
- Keep everything in org.fusesource.* - after processing with proguard there's a native exception on Windows 7 64bit
- Don't warn about missing dependencies from org.fusesource as jline documentation proclaims absence of any dependencies
- Remove jansi from dependencies

  #KT-3047 Fixed
2012-11-26 14:34:06 +04:00
Andrey Breslav 21b9835dc5 Proper kotlinHome in compiler messages 2012-11-24 21:39:35 +04:00
Andrey Breslav c2f2356855 Clarifying rename 2012-11-24 15:59:17 +04:00
Andrey Breslav e064a50728 Error renamed 2012-11-24 15:59:17 +04:00
Andrey Breslav 1f2e3d09af Remove duplicating method 2012-11-24 15:59:17 +04:00
Andrey Breslav 5ac10ee8e5 Mutability fixed in KDocConfig: the maps are mutated from Java 2012-11-24 15:59:16 +04:00
Andrey Breslav c849a0c4e3 Redundant/conflicting projections 2012-11-24 15:59:16 +04:00
Andrey Breslav 5b93ae2d08 Variance in functions/properties removed from stdlib 2012-11-24 15:59:16 +04:00
Andrey Breslav 12fd07af08 Report an error when variance is specified for a function or property type parameter 2012-11-24 15:59:16 +04:00
Andrey Breslav d8c9d19bd7 rename: positionModifier -> modifierPosition 2012-11-24 15:59:15 +04:00
Andrey Breslav 889ea107f6 Reflect Kotlin's declaration-site variance in Java signatures 2012-11-24 15:59:15 +04:00
Andrey Breslav da2f886bee Redundant projections removed from code 2012-11-24 15:59:15 +04:00
Andrey Breslav d3f9e61db7 Redundant projections removed from test data 2012-11-24 15:59:15 +04:00
Andrey Breslav 649259e715 Type substitutor logic regarding projection composition fixed 2012-11-24 15:59:15 +04:00
Andrey Breslav 7d8bde2ac6 Test data moved out of JetTypeCheckerTest 2012-11-24 14:08:43 +04:00
Andrey Breslav 94552d5524 Proper message reporting 2012-11-24 14:08:43 +04:00
Alexander Udalov 6c2b402625 Remove dangerous and unused method 2012-11-23 17:37:50 +04:00
Pavel V. Talanov 59e74e79c2 Test for KT-2619
Remove outdated check in WhenChecker

# KT-2619 fixed
2012-11-23 17:18:09 +04:00
Pavel V. Talanov 997e26d11e Test for KT-2890
# KT-2890 can't reproduce
2012-11-23 17:17:42 +04:00
Pavel V. Talanov 5fa069bebd Test for KT-2152
# KT-2152 can't reproduce
2012-11-23 17:17:03 +04:00
Andrey Breslav 3b11d5787c Migrating to IDEA 123.4 2012-11-23 12:38:54 +04:00
Alexander Udalov 9d3907ff98 When-statements & correct line numbers 2012-11-22 22:32:21 +04:00
Alexander Udalov aa898725fc Mark line numbers on compile-time constants 2012-11-22 22:32:17 +04:00
Alexander Udalov 0f496eac21 Try-catch-finally statements & correct line numbers 2012-11-22 22:32:14 +04:00
Alexander Udalov ca587513e3 Fix for finally before empty return 2012-11-22 22:32:10 +04:00
Alexander Udalov 99a908e8fe If-then-else statements & correct line numbers
#KT-3036 Fixed
2012-11-22 22:31:58 +04:00
Alexander Udalov 8564c20baa Fix condition generation of empty if 2012-11-22 22:31:53 +04:00
Alexander Udalov af601b5a90 Single-branch if-statements
Single-branch if-expressions are now compiled to statements if the result is
not used

 #KT-3036 In Progress
2012-11-22 22:31:40 +04:00
Alexander Udalov 9c7724b7f9 Introduce CodegenStatementVisitor
Which will be used for generating statements (as opposed to generating
expressions always, as it is now)

Add StatementGenTest, which will check if we actually generate statements and
not expressions of type Unit, popping them off the stack later
2012-11-22 22:07:01 +04:00