Alexander Udalov
234148518e
Temporarily remove isInitialized and tests, but keep the implementation
...
This is needed because we want the compiler code to stay as much the
same in master and in 1.2 as possible
2017-09-13 22:51:23 +03:00
Alexander Udalov
c6263ac8e6
Support isInitialized intrinsic for lateinit properties
...
See https://github.com/Kotlin/KEEP/pull/73
#KT-9327 Fixed
2017-09-13 22:49:26 +03:00
Ilya Gorbunov
08052e63e9
Test to ensure fixed typed char array content[Deep]ToString, relates to #KT-16056
2017-09-13 20:53:17 +03:00
Anton Bannykh
497251a6d7
Revert "JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests" so that it wouldn't clash with Gradle Build transition
...
This reverts commit 11c83ad
2017-09-13 20:11:11 +03:00
Anton Bannykh
11c83ad0fc
JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests
2017-09-13 19:43:53 +03:00
Ilya Gorbunov
599113b30f
Fix internal KotlinVersion representation that caused invalid comparison
2017-09-06 18:45:33 +03:00
Alexander Udalov
840fce520c
Update KotlinVersion.CURRENT to 1.1.50
2017-09-04 13:09:52 +03:00
Alexander Udalov
d1cff41ce0
Treat nested class of header class as header
...
Note that the quick fix to implement header class works incorrectly when
that class has nested classes at the moment; this should be fixed
separately
#KT-15494 Fixed
#KT-18573 Fixed
2017-08-25 15:40:37 +03:00
Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00
Ilya Gorbunov
f10ea03173
Provide extension to get mutable iterator from the mutable map
...
#KT-18992 Fixed
2017-07-24 21:02:15 +03:00
Roman Elizarov
9f0810f723
Pull implementations up from AbstractCoroutineContextElemenet
...
Fixes KT-18671
2017-07-19 08:59:43 +03:00
Alexander Udalov
3c04ca4397
Update KotlinVersion.CURRENT to 1.1.5
2017-07-14 21:03:06 +03:00
Igor Chevdar
fd380f7545
Split up test on map access onto two tests: stdlib & compiler box test
2017-07-12 15:12:33 +03:00
Alexey Andreev
811da2e285
Compile stdlib-js with source map
2017-07-09 14:22:08 +03:00
Ilya Gorbunov
fe17c4416e
Fix a typo: retail -> retain
...
#KT-18526 Fixed
2017-07-01 17:05:17 +03:00
Stuart Kent
962958c403
Fix String capitalize/decapitalize sample references and sample names
2017-07-01 17:05:17 +03:00
Igor Chevdar
d7e4350d42
Ignored/fixed some tests for Kotlin/Native
2017-06-28 12:54:32 +03:00
Ilya Gorbunov
4798c029de
Limit visibility of sublists, make them implement RandomAccess
2017-06-10 10:00:15 +03:00
Denis Zharkov
eedc35aefd
Drop new coroutine-related API introduced in 1.1.4
...
See 49453ca705 for clarification
#KT-17898 Fixed
2017-05-22 14:51:04 +03:00
Ilya Gorbunov
2500a182e5
Refactor: use sam-like constructor for comparators
2017-05-17 19:34:44 +03:00
Ilya Gorbunov
ddf6599b38
Do not use spread-operator when it causes excessive array copying
2017-05-17 19:34:44 +03:00
Denis Zharkov
2c5baf6c08
Make companion object private to avoid its presence in public API
2017-05-16 11:38:59 +03:00
Ilya Gorbunov
ab70307cc0
Minor: refactor iterable tests
2017-05-05 18:01:02 +03:00
Ilya Gorbunov
2792dbf988
Import for buildSequence in generated code for sequences
2017-05-05 18:01:02 +03:00
Denis Zharkov
c3a032ea0b
Generate state machine for named functions in their bodies
...
Inline functions aren't supported yet in the change
#KT-17585 In Progress
2017-05-05 14:01:50 +03:00
Anton Bannykh
a71e5abb45
Update KotlinVersion.CURRENT to 1.1.4
2017-05-04 15:24:40 +03:00
Ilya Gorbunov
9953efc66b
Clarify ReentrantReadWriteLock.write behavior regarding upgrade from read to write lock
...
#KT-17704 Fixed
2017-05-03 17:51:14 +03:00
Ilya Gorbunov
ef72371fd7
Add samples for contentToString and contentDeepToString array operations
2017-05-03 17:44:30 +03:00
Marek Langiewicz
934b0b8c38
Fix List.takeLast for lists without RandomAccess
2017-05-03 16:38:15 +02:00
Ilya Gorbunov
8da4839f22
Document IllegalArgumentException thrown from string-number conversion
...
functions when an invalid radix is specified
#KT-17635 Fixed
2017-05-03 17:32:49 +03:00
Ilya Gorbunov
e0a4f9ba76
Rewrite precondition samples and refactor precondition tests
...
Precondition tests are shared for JS target.
Samples do not use assertFailsWith as expression, as it's going to be converted as a special template.
2017-04-21 21:13:25 +03:00
Ilya Gorbunov
ec8ead754f
Run kotlin-test-js tests with kotlin-stdlib-js
...
Rework kotlin-test common tests to make them runnable with qunit.
Change the way how asserter is overridden in js box tests.
Minor: remove unneeded test configs
2017-04-21 20:51:07 +03:00
Zalim Bashorov
c112542935
KJS: remove unnecessary test runners (mostly for stdlib)
...
Stdlib tests run separately via gradle.
2017-04-20 16:19:05 +03:00
Ilya Gorbunov
2db8714fc5
Fix null values being treated as missing in 'put' method of a specialized string-keyed map
2017-04-19 18:32:47 +03:00
Ilya Gorbunov
59dc0f57fc
Clarify copyRecursively behavior in case of a single file.
2017-04-18 21:26:55 +03:00
Shaun Reich
7ebd86725f
Fix FileTreeWalk doc typo/grammar
2017-04-18 21:26:53 +03:00
Ilya Gorbunov
ea18282f4c
Minor: reformat docs to distinguish summary
2017-04-18 21:26:52 +03:00
Ilya Gorbunov
6ae19e03d5
Clean warnings and refactor stdlib tests.
...
Merge RangeJVMTest into RangeTest.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
cb186aabf9
Another workaround for IDEA shared source root limitation
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
4a5d8534c1
Fix array iterators to adhere to Iterator contract
...
#KT-17453 Fixed
Change expected exceptions in tests.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
f22375601b
Remove unneeded suppressions
2017-04-18 12:47:11 +03:00
Ilya Gorbunov
8f452ed046
Cleanup warnings in stdlib and generated code
2017-04-18 12:47:04 +03:00
Ilya Gorbunov
6af986cfdd
Refactor serialization tests and move them to test/io package
...
Add tests for singleton deserializing.
2017-04-18 12:46:52 +03:00
Alexander Udalov
10f2e9d33a
Revert usages of -X arguments to old form in some places
...
We use the old compiler in Gradle build and in GradleFacetImportTest, so
some changes in f4b6db4 should not have been made yet
2017-04-17 11:33:58 +03:00
Alexander Udalov
f4b6db4dc0
Change format of -X arguments to require value after '='
...
Report a warning when an argument is passed in the old form (with the
whitespace)
#KT-17264 Fixed
2017-04-14 20:07:54 +03:00
Alexander Udalov
7fe9b99087
Support different target platforms for modules in AnalyzerFacade
...
Instead of reusing the same AnalyzerFacade that is used for resolution
of a module to resolve its dependencies, analyze each dependency
module/library with a facade depending on its target platform. Introduce
and use CommonLibraryDetectionUtil in addition to
KotlinJavaScriptLibraryDetectionUtil, to detect common libraries (with
.kotlin_metadata files).
Note that before multi-platform projects, this was not needed because
there were only two platforms (JVM and JS), and JVM module had only JVM
modules/libraries as dependencies, JS module had only JS
modules/libraries as dependencies. Now, for example, a JVM module can
have a common module/library as a dependency, and it would be incorrect
to analyze that dependency with JvmAnalyzerFacade because that facade
does not know anything about .kotlin_metadata files.
The changes in Dsl.kt and KotlinCacheServiceImpl.kt are needed because
PsiElement.getJavaDescriptorResolver, called from some IDE code, started
to fail on a common module, because the container for a common module
does not have the JavaDescriptorResolver
2017-04-14 00:44:00 +03:00
Ilya Gorbunov
37e046f6cd
Provide shortcuts for producing quick compiler for maven and rebuilding stdlib-js from ant.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
5aabcb6ea3
Update build instructions in ReadMe to include gradle build step.
...
Also update links and overall readme structure.
2017-04-08 08:37:12 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Ilya Gorbunov
88e6f2160a
Build and verify runnable samples with gradle.
2017-04-06 20:32:37 +03:00