Mikhail Glukhikh
86bc49558d
Tests for KT-13468 / KT-13765
...
(cherry picked from commit 2e4c0b4)
2017-01-18 18:53:55 +03:00
Nikolay Krasko
ffc1624484
Stop using idea isNullOrEmpty function (KT-15786)
...
#KT-15786 Fixed
2017-01-18 18:36:19 +03:00
Alexander Udalov
4f36376291
Do not report KCLASS_WITH_NULLABLE_ARGUMENT_IN_SIGNATURE anymore
...
It was only reported in already erroneous cases
2017-01-18 18:21:30 +03:00
Alexander Udalov
d02404b07b
Report error on expression of nullable type in class literal
...
#KT-15740 Fixed
2017-01-18 18:21:29 +03:00
Alexander Udalov
6a352a1da7
Report error on nullable type alias in class literal
...
#KT-15736 Fixed
2017-01-18 18:21:28 +03:00
Zalim Bashorov
284b9d2ba6
KJS: make deep copy of additional arguments before expose them in KotlinFunctionIntrinsic
2017-01-18 14:43:33 +03:00
Zalim Bashorov
ca2930600a
KJS: introduce $kotlin_test_internal$ to expose some helper functions in the tests
2017-01-18 14:42:40 +03:00
Zalim Bashorov
bbd69a05dc
KJS: make JSON object and allow to pass null to stringify methods
2017-01-18 14:41:22 +03:00
Zalim Bashorov
1b09fa29fb
Fix maven build
2017-01-18 14:40:57 +03:00
Zalim Bashorov
8cf44e9f36
KJS: increase ABI version
2017-01-18 14:40:56 +03:00
Zalim Bashorov
cfba99c704
KJS: remove unused polyfill String.prototype.contains
2017-01-18 14:40:55 +03:00
Zalim Bashorov
264e319487
KJS: type -> kind
2017-01-18 14:40:54 +03:00
Zalim Bashorov
70423e8129
KJS: remove obsolete classIndex
2017-01-18 14:40:51 +03:00
Zalim Bashorov
be694d53ef
KJS: trait -> interface
2017-01-18 14:40:50 +03:00
Zalim Bashorov
c6f0d0fa59
KJS: split kotlin_* files to several files
2017-01-18 14:40:49 +03:00
Zalim Bashorov
d635d7859e
KJS: remove obsolete kotlin.modules
2017-01-18 14:40:48 +03:00
Zalim Bashorov
3ef1321841
KJS: implement throw* functions in Kotlin
2017-01-18 14:40:47 +03:00
Zalim Bashorov
6f56079f7e
KJS: add external declaration for parseFloat; remove obsolete safeParseInt and safeParseDouble
2017-01-18 14:40:46 +03:00
Zalim Bashorov
d0c7c8022e
KJS: remove obsolete functions from kotlin_lib.js
2017-01-18 14:40:44 +03:00
Zalim Bashorov
6b38b5f5ba
KJS: implement array factory function intrinsics in Kotlin
2017-01-18 14:40:42 +03:00
Zalim Bashorov
a71fbda8a1
KJS: remove deprecated splitWithRegex and it's implementation in kotlin_lib.js
2017-01-18 14:25:36 +03:00
Zalim Bashorov
d985d30f91
KJS: reimplement collectionSort in Kotlin
2017-01-18 14:25:36 +03:00
Zalim Bashorov
20c482598a
KJS: reimplement Json.add in Kotlin
2017-01-18 14:25:36 +03:00
Zalim Bashorov
edf1c2da0f
KJS: reimplement deleteProperty in Kotlin
2017-01-18 14:25:36 +03:00
Zalim Bashorov
6ea6e4ab98
KJS: move println to kotlin.io; import kotlin.io by default in Default platform
2017-01-18 14:25:36 +03:00
Zalim Bashorov
7f10ce072f
KJS: move js part of "kotlin.js" and related files to "js.libraries" module
2017-01-18 14:25:36 +03:00
Zalim Bashorov
08e1f757a9
Minor: fix typo
2017-01-18 14:25:36 +03:00
Zalim Bashorov
45b92be1ae
KJS: extract string polyfills to separate file
2017-01-18 14:25:36 +03:00
Zalim Bashorov
12a1c63bda
KJS: move some files inside js.libraries module
2017-01-18 14:25:36 +03:00
Mikhael Bogdanov
de52a5bc20
Fixed diagnostic message
2017-01-18 11:19:36 +01:00
Denis Zharkov
22ddfed911
Do not load PlatformDependent annotated built-in members with lv=1.0
...
#KT-15780 Fixed
2017-01-18 13:00:32 +03:00
Mikhael Bogdanov
591de36666
Added deprecated diagnostic for invoking default methods within jvm-target 1.6
2017-01-18 10:50:59 +01:00
Mikhael Bogdanov
7a27a9d51f
Propagate 'CompilerConfiguration' to frontend checkers
2017-01-18 10:23:40 +01:00
Mikhael Bogdanov
9b1c258cdf
Android test fix
2017-01-18 10:23:40 +01:00
Denis Zharkov
37b364a70a
Fix processing of uninitialized instances for coroutines
...
The problem is that code in the attached test led to VerifyError at runtime
because the Bar's uninitialized instance created in 'map' was being stored
to the field (leaked from the JVM point of view).
The actual problem was that after repeating visiting of NEW operation
we used to drop the set of already visited copy usages.
For clarification see the comment before 'processUninitializedStores'
#KT-15016 Fixed
2017-01-18 12:00:46 +03:00
Denis Zharkov
630fab1952
Fix signature of accessor for suspend function
...
It must be a suspend function too to have an additional Continuation parameter
#KT-15715 Fixed
2017-01-18 12:00:45 +03:00
Denis Zharkov
d0d617b44e
Fix signature mapping for default suspend function from interface
...
Use jvm suspend function view in function codegen.
Also use SUSPEND_FUNCTION_TO_JVM_VIEW slice if the value exists
for the given key
#KT-15552 Fixed
2017-01-18 12:00:45 +03:00
Denis Zharkov
fae9cc1c63
Fix codegen issue of safe-qualified suspension points
...
#KT-15527 Fixed
2017-01-18 12:00:44 +03:00
Denis Zharkov
8cf8e0fce0
Minor. Extract method
2017-01-18 11:44:21 +03:00
Alexey Tsvetkov
f024f14c1e
Fix passing friend paths from Gradle to Kotlin daemon when compiling with IC
2017-01-17 19:18:23 +03:00
Alexey Tsvetkov
58fd2530d2
Pass compiler args from facets when compiling in fallback mode from JPS
2017-01-17 19:18:18 +03:00
Ilya Chernikov
3fcbc7bfa3
Rollback commit with native platform lib relocation - it seems breaks functionality on Windows
...
(cherry picked from commit d3ff19e)
2017-01-17 14:30:28 +01:00
Alexander Udalov
8499db1f42
Update JvmMetadataVersion to 1.1.3
...
This is needed because 1.1.2 binaries are considered pre-release (see
DeserializedDescriptorResolver), so it wasn't possible to compile
non-pre-release binaries with -language-version 1.0
2017-01-17 15:00:52 +03:00
Yan Zhulanow
5adc3bacff
SamWithReceiver: Call onContainerComposed() properly for module dependencies as well. Inject SamWithReceiverResolver by instance.
2017-01-17 20:39:28 +09:00
Alexey Sedunov
75e76dda54
Kotlin Facet: Do not reset configuration if "Use project settings" is switched on
...
#KT-15735 Fixed
2017-01-16 18:27:30 +03:00
Alexey Sedunov
aeb6af546f
Kotlin Facet: Switch off "Use project settings" on Maven/Gradle import
...
#KT-15682 Fixed
2017-01-16 18:27:29 +03:00
Denis Zharkov
9f217de10b
Write kotlin metadata on class-files for coroutine state machines
...
Otherwise it breaks JPS assumptions, that leads to exceptions like:
Error:Kotlin: [Internal Error] java.lang.AssertionError: Couldn't load KotlinClass from /Users/jetbrains/IdeaProjects/KotlinPlaygroundBeta11/out/production/KotlinPlaygroundBeta11/Counter$both$1.class; it may happen because class doesn't have valid Kotlin annotations
at org.jetbrains.kotlin.build.GeneratedJvmClass.<init>(generatedFiles.kt:36)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.getGeneratedFiles(KotlinBuilder.kt:469)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.doBuild(KotlinBuilder.kt:241)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.build(KotlinBuilder.kt:140)
...
2017-01-16 17:53:15 +03:00
mglukhikh
93b2c56bb4
Fixed KNPE in convert primary constructor to secondary #KT-14745 Fixed
2017-01-16 17:35:51 +03:00
Dmitry Petrov
cd33a40612
KT-15734
...
Combine nullability for nested type alias expansion result.
2017-01-16 17:26:28 +03:00
Dmitry Petrov
954204da82
KT-1560
...
Report warning on extensions shadowed by members.
2017-01-16 17:25:13 +03:00