Nikolay Krasko
c1538aea43
Get annotation for injection from reference descriptor (KT-15548)
...
#KT-15548 Fixed
2017-01-12 14:21:47 +03:00
Nikolay Krasko
0cbe19b930
Remove unused files
2017-01-12 13:49:31 +03:00
Alexander Udalov
abe2ad155c
Sanitize names for script class files
...
Use the same process that is done for package parts in the JVM back-end, except
adding the "Kt" suffix
#KT-15225 Fixed
2017-01-12 11:24:24 +03:00
Alexander Udalov
6ffa56b640
Move name sanitization utilities to module 'descriptors'
2017-01-12 11:24:23 +03:00
Alexander Udalov
f4d59304e2
Fix JvmPackageTableTest by preserving package order in ModuleMapping.create
2017-01-12 11:08:23 +03:00
Svyatoslav Scherbina
d9023bdf70
backend: move some JVM lowering to common
2017-01-12 11:56:32 +07:00
Svyatoslav Scherbina
5a5f4fc224
backend: extract common lowering utils
2017-01-12 11:56:31 +07:00
Svyatoslav Scherbina
f85538129d
backend: introduce common backend context
2017-01-12 11:56:30 +07:00
Svyatoslav Scherbina
2e88dd0675
backend: fix minor bug in LocalFunctionsLowering
...
extension receiver parameter should be remapped too
(e.g. to support lambda with receiver)
2017-01-12 11:56:29 +07:00
Svyatoslav Scherbina
e6c9a709b2
backend: fix minor bug in SharedVariablesLowering
2017-01-12 11:56:28 +07:00
Simon Ogorodnik
c5e3f0ad01
KT-15141 Bogus import popup for when function call cannot be resolved fully
...
#KT-15141 fixed
2017-01-11 22:41:09 +03:00
Simon Ogorodnik
db8edb01c3
KT-14815 alt + enter -> "import" over a constructor reference is not working
...
#KT-14815 fixed
2017-01-11 22:41:09 +03:00
Simon Ogorodnik
f9b2929bca
KT-15154 IllegalStateException on attempt to convert import statement to * if last added import is to typealias
...
#KT-15154 fixed
2017-01-11 22:41:08 +03:00
Ilya Gorbunov
6273ab5d43
Hold back eachSumOf for a while: fixups.
...
Remove unneeded import.
2017-01-11 20:04:00 +03:00
Alexander Udalov
edb4fd1dfd
Do not emit pre-release flag if -Xskip-metadata-version-check is used
...
The -Xskip-metadata-version-check command line argument is supposed to be used
to avoid getting errors only; the side effect that it also caused compiler to
write the pre-release flag to binaries was a mistake and is fixed now
2017-01-11 19:28:52 +03:00
Alexander Udalov
8f9ce5d0f2
Fix some issues in script constructor param/arg matching
2017-01-11 19:28:51 +03:00
Alexander Udalov
453c5267ad
Fix detection of scripts in cls stub builder
2017-01-11 19:28:51 +03:00
Alexander Udalov
e860d620c6
Add script flag to kotlin.Metadata
...
This will allow to distinguish compiled scripts from ordinary classes in the
compiler, reflection, IDE, etc.
#KT-13382 Fixed
2017-01-11 19:28:51 +03:00
Mikhail Glukhikh
7c6d5c825c
Join declaration & assignment is no more suggested in case of potential smart cast available #KT-15412 Fixed
2017-01-11 19:10:09 +03:00
Mikhail Glukhikh
31a8689999
Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed
2017-01-11 18:37:55 +03:00
Mikhail Glukhikh
586246002c
Create header implementation fix: do not use Swing inside write action
2017-01-11 18:37:50 +03:00
Mikhail Glukhikh
b0a333456e
Platform header IDE annotation: do not report suppressed error #KT-15601 Fixed
2017-01-11 18:37:44 +03:00
Mikhail Glukhikh
76ee6d7712
Minor: multi-platform highlighting tests rename
2017-01-11 18:37:38 +03:00
Sergey Mashkov
892e36412d
IDL2K: KT-15436 js stdlib: org.w3c.fetch.RequestInit has 12 parameters, all required
2017-01-11 18:07:47 +03:00
Sergey Mashkov
099cd819f7
IDL2K: KT-15436 js stdlib: org.w3c.fetch.RequestInit has 12 parameters, all required
2017-01-11 18:07:46 +03:00
Ilya Gorbunov
4816474d70
Hold back eachSumOf for a while.
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
0dfcbdf072
Improve docs, use consistent naming for parameters, rename unused parameters of lambdas to _.
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
04a0f0a036
Rename Grouping.elementIterator to sourceIterator
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
6d3a71c691
Minor refactoring: use mapValuesInPlace optimization, delegate aggregate implementation to aggregateTo.
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
d73744f1c0
Tests for group-and-fold operations
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
2a2b417025
KEEP-23 implement group and fold operations
...
Docs for group-and-fold operations
Fix implementation for countEach and sumEachBy
countEach and sumEachBy implementations for JS
Rename keySelector to keyOf
Generate additional sources for groupingBy + headers
Rename countEach and sumEachBy to eachCount and eachSumOf.
2017-01-11 16:49:45 +03:00
Mikhail Glukhikh
43a4035390
Clearer diagnostic message for platform type inspection #KT-14630 Fixed
2017-01-11 16:24:10 +03:00
Ilya Gorbunov
3bf38e62c8
Add a note about NaN propagation for floating point specializations.
2017-01-11 14:45:21 +03:00
Ilya Gorbunov
897e9658ac
Do not run total order tests on JS
2017-01-11 14:45:19 +03:00
Ilya Gorbunov
0bf2ba8701
Introduce new overloads of max and min to fix NaN propagation behavior on JVM.
2017-01-11 14:45:18 +03:00
Ilya Gorbunov
74331f8eaa
Add NaN propagation and total ordering tests.
2017-01-11 14:45:16 +03:00
Ilya Gorbunov
6041a7d6c8
Add tests for normal cases of maxOf/minOf
2017-01-11 14:45:14 +03:00
Ilya Gorbunov
eb07d9407d
Unexpected appearance of minOf/maxOf for T: Comparable<T> in smart completion tests
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
18245c5b73
Expected appearance of minOf/maxOf for T: Comparable<T> in one of smart completion tests
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
844c68286a
Refactor: replace Math.min with minOf in common code.
...
Add temporary import of kotlin.comparisons where required.
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
51c24a0c3c
Introduce minOf/maxOf in kotlin.comparisons. #KT-7417
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
35d433160e
Move more logic of 'use' into 'closeSuppressed', rename the latter to 'closeFinally', that will result in more compact inline call expansions.
2017-01-11 14:35:38 +03:00
Ilya Gorbunov
a71b68268d
Refactor exception suppression to provide Throwable.addSuppressed extension in kotlin-stdlib.
...
Place Closeable and AutoCloseable extensions to separate files (CloseableKt and AutoCloseableKt).
#KT-15477 Fixed
2017-01-11 14:35:38 +03:00
Ilya Gorbunov
dcd7f3eb57
Fix test data after introducing overloads #KT-15630
2017-01-11 14:33:17 +03:00
Ilya Gorbunov
076a94f7f2
Provide parameterless mutable collection factory functions.
...
#KT-15630
2017-01-11 14:33:17 +03:00
Mikhael Bogdanov
ec42b58877
Fix @PublishedApi checking
2017-01-11 11:50:34 +01:00
Mikhael Bogdanov
2931c316a3
Fix for KT-15575: VerifyError: Bad type on operand stack
...
#KT-15575 Fixed
2017-01-11 11:50:33 +01:00
Alexander Udalov
a3f6fbe0c1
Add test on contents of .kotlin_module files
2017-01-11 13:15:59 +03:00
Alexander Udalov
7b5c90ebaf
Correctly load multifile package parts from binaries
...
JvmPackagePartProvider should not just blindly load all multifile parts from
all libraries on the classpath, but only those from multifile classes which
shadow (come earlier on the classpath) other classes with the same name.
Otherwise if you have different versions of the same library (which uses
multifile classes) on the classpath, the compiler will see parts from both
versions. If some declaration have moved from one part to another, it's
possible to observe an overload resolution ambiguity error
#KT-15287 Fixed
2017-01-11 13:15:58 +03:00
Alexander Udalov
69bfc5b4bb
Write multifile part->facade mapping to .kotlin_module
2017-01-11 13:15:57 +03:00