Anton Bannykh
8852ef9e75
[JS IR BE] fix multimodule
2018-10-11 16:02:21 +03:00
Zalim Bashorov
9041d717a2
[JS IR BE] add IrType.asString that return stable string representation to use it for stringified signatures
...
`IrType.render` was used before, but it's written for debugging purpose and generates unstable string representation.
2018-10-11 14:54:55 +03:00
Ilmir Usmanov
c4d0b5493a
Fix NPE in suspension point in monitor call checker
...
#KT-27484 Fixed
2018-10-11 14:38:34 +03:00
Denis Zharkov
36c73eedbf
Minor. Move DslMarkerOnFunctionTypeReceiver entry closer to 1.4 features
2018-10-11 10:23:02 +03:00
Denis Zharkov
75dc8ce1c3
Fix exception in light classes when type alias in MultifileClass
...
#KT-27355 Fixed
2018-10-11 10:22:09 +03:00
Toshiaki Kameyama
dc750cdbb3
Call chain into sequence: add 'unzip' to conversion targets #KT-27486 Fixed
2018-10-11 09:18:30 +03:00
Toshiaki Kameyama
3f252b15e1
Call chain into sequence: add 'flatten' to conversion targets #KT-26969 Fixed
2018-10-11 09:17:23 +03:00
Nikolay Krasko
bd27460694
Prevent IDEA attach debugger to serialize task
...
Workaround for IDEA-200192
IDEA patches JavaExec tasks and adds
agentlib:jdwp= jvm parameter when running under debug.
Replace parameters after IDEA has finished patching parameters.
2018-10-10 20:58:00 +03:00
Svyatoslav Kuzmich
7074909230
[JS IR BE] Support enumValues<T>() and enumValueOf<T>(name)
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
bdc3daf972
[JS IR BE] Support Enum::values
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
0210ec3114
[JS BE] Fix KT-26787: handle JsSwitch in LabeledBlockToDoWhileTransformation
2018-10-10 19:35:16 +03:00
Pavel Punegov
f543170998
Increase tolerance for Float asin test
2018-10-10 19:05:44 +03:00
Sergey Bogolepov
2f1f32bbf4
Replace random val in companion object with top level val
2018-10-10 19:04:55 +03:00
Pavel Punegov
17b7bbce8c
Make coroutines test JVM-only
2018-10-10 19:04:31 +03:00
Pavel Punegov
3dd16da315
Fix vararg test for native that assigns named argument.
...
Ignore test that uses nested class in enum in native
2018-10-10 19:03:56 +03:00
Pavel Punegov
dd1c9fa9f0
Native: Ignore tests that use reflection not implemented in native
2018-10-10 19:01:35 +03:00
Pavel Punegov
82b59c5044
Native: Ignore tests that use jvm or full reflect
2018-10-10 19:00:50 +03:00
Svyatoslav Kuzmich
89f7ced0d4
[JS IR BE] Unmute tests
2018-10-10 17:27:37 +03:00
Svyatoslav Kuzmich
e73ff16b35
[JS IR BE] Refactor: split IntrinsicifyCallsLowering into multiple classes
2018-10-10 17:27:37 +03:00
Svyatoslav Kuzmich
749556f565
[JS IR BE] Support Long coercion
2018-10-10 17:27:37 +03:00
Svyatoslav Kuzmich
c7bde6a5e6
[JS IR BE] Fix runtime compareTo(Number, Long)
2018-10-10 17:27:36 +03:00
Anton Bannykh
44d56cb278
JS: fix val with backing field initialization in secondary constructors
...
This change reverts the AssignmentTranslator logic to a previous state
of "if we assign to a val, tranlate to backing field". Previously a
check whether or not we are inside of a constructor was added. The
check didn't detect secondary constructors, hence initializing of
val's with backing field started to work incorrectly.
The check itself was added in an attempt to prevent augmented assignment
operators to reference the backing field. The check seems to have been
wrong, because an augmented assignment could happen inside a construcotr.
A more correct fix was added later. It seems that it is safe now to
revert the logic back and rely on the frontend to only allow assignment
to a val property during initilization.
2018-10-10 17:25:55 +03:00
Mikhail Glukhikh
6be65e7d1a
Replace equals with == involving FP types: handle possible smart casts
...
This fixes two relevant tests with smart casts
#KT-25933 Fixed
2018-10-10 15:02:47 +03:00
Mikhail Glukhikh
04cadf3f58
Reformat ReplaceCallWithBinaryOperator
2018-10-10 15:02:45 +03:00
kenji tomita
1aa9d5673b
Do not highlight replacement of equals involving floating-point types
...
Two tests with smart casts do not work yet
Part of KT-25933
2018-10-10 15:02:43 +03:00
Anton Bannykh
8c6337f3f6
[JS IR BE]: support dynamic_var["foo"] = "bar"
...
Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
2018-10-10 13:43:22 +03:00
Anton Bannykh
7afb81a7df
JVM_IR: fix ranges' test generator
2018-10-10 13:13:36 +03:00
Ilya Chernikov
7fbfad814e
Fix default host configuration property - make it not shared:
...
Shared instance is incorrect here and causes clashes when many
definitions are loaded in the same process.
Also make the diagnostics in case of clashes more verbose.
2018-10-10 10:53:57 +02:00
John Eismeier
ac69fa14d5
Is the Interface with out the f a type?
2018-10-10 09:44:10 +03:00
Ilmir Usmanov
9af7316845
Add call checker to report error more granulary if possible
...
This, however, works only for calls of 'synchronized' only. Thus, it
does not support inline functions of any kind.
2018-10-09 22:55:51 +03:00
Ilmir Usmanov
281f09f077
Rework check of suspension point inside critical section
...
There is a trade-off between robustness of check and accuracy of the
diagnostic: the previous version, which works on generation, was too
fragile and lead to false-positives. Now we check on state machine
generation. However, since we do not have PSI for call, we can only
report diagnostic on whole suspend function or suspend lambda.
Additionally, the state machine is generated on crossinline suspend
lambdas regeneration and thus we do not have the PSI for the lambda as
well!
#KT-27130 Fixed
#KT-27258 Open
2018-10-09 22:55:48 +03:00
Ilmir Usmanov
1b04945625
Revert: Forbid suspension points in critical sections
2018-10-09 22:55:43 +03:00
Vyacheslav Gerasimov
37a88fda78
Build: Remove shadow jar task from custom-deps/intellij-sdk project
2018-10-09 20:48:27 +03:00
Vyacheslav Gerasimov
78d4abf954
Build: set version for build-scan plugin to 1.15 since 1.16 fails with NPE
2018-10-09 20:27:15 +03:00
Sergey Igushkin
294bd8c7fa
Fix resolution of Java Usage artifacts for configurations with no usage
...
When Gradle resolves a dependency on a publication with no metadata
(or with metadata disabled), it represents it as two variants, one with
Usage `java-api`, the other with `java-runtime`. It turns out that the
`java-api` one does not contain transitive dependencies with Maven scope
`runtime`.
This commit makes the Kotlin Gradle plugin disambiguation rules behave
the same way as those defined in the JavaBasePlugin: when no Usage is
requested, prefer the runtime usages as they are more complete.
2018-10-09 19:17:36 +03:00
Sergey Igushkin
748dc203e5
Fix unresolved library with 'java-api' and 'java-runtime' usages
2018-10-09 19:17:36 +03:00
romanart
d77a0f109b
Update tests
2018-10-09 15:33:04 +03:00
romanart
5af114da07
Add unit into compilation
2018-10-09 15:33:03 +03:00
romanart
9b40981368
[JS IR BE] Unit Materialization lowering
...
Fix unit-related things across backend
2018-10-09 15:32:52 +03:00
Toshiaki Kameyama
57ae60e9dc
"Add else branch" on when quickfix: don't add braces #KT-5088 Fixed
2018-10-09 12:28:08 +03:00
Toshiaki Kameyama
f22133be7e
Call chain into sequence refactoring: introduce & use isIterable
...
Related to KT-26650
2018-10-09 12:22:19 +03:00
Toshiaki Kameyama
416d33fc92
Refactoring: extract KtCallExpression.isCall(FqName) function
2018-10-09 12:22:18 +03:00
Toshiaki Kameyama
9a725b99b2
Call chain into sequence: fix false negative on Iterable
...
#KT-26650 Fixed
2018-10-09 12:22:17 +03:00
Mikhail Glukhikh
2e5ee242c7
Minor refactoring: implicitVisibility
2018-10-09 11:50:21 +03:00
Toshiaki Kameyama
3be5f2b843
"Redundant visibility": Fix false positive for overridden setter
...
#KT-26051 Fixed
2018-10-09 11:48:00 +03:00
Toshiaki Kameyama
1c8e75eb34
if then to elvis: propose transformation to 'let' #KT-26653 Fixed
2018-10-09 11:41:06 +03:00
Toshiaki Kameyama
539c55c5b2
Call chain into sequence: fix false negative on implicit receiver
...
Part of KT-26650
2018-10-09 11:33:55 +03:00
Mikhail Glukhikh
0285cae2fd
Minor: introduce 'lazyTerminations' in Call chain --> Sequence
...
Related to KT-27104
2018-10-09 11:32:25 +03:00
Toshiaki Kameyama
8fc5fefc7f
Call chain --> Sequence: don't report if first call is 'groupingBy'
...
#KT-27104 Fixed
2018-10-09 11:26:50 +03:00
Mikhail Glukhikh
b500239bd1
Call chain -> sequence: minor style fix
2018-10-09 11:09:58 +03:00