Commit Graph

59485 Commits

Author SHA1 Message Date
Vladimir Dolzhenko c67222c176 Add ERRORs check to AbstractOutOfBlockModificationTest 2019-11-27 13:43:10 +01:00
Vladimir Dolzhenko 144f721a44 Kotlinify AbstractOutOfBlockModificationTest, p2 2019-11-27 13:42:49 +01:00
Vladimir Dolzhenko 8f8ed4dbcf Kotlinify AbstractOutOfBlockModificationTest, p1 2019-11-27 13:42:32 +01:00
Dmitriy Novozhilov 567248ebd7 [FIR] Add default upper bounds to type parameter of synthetic when and try calls 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 5770d19d61 [FIR] Fix calculating of completion mode 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 9c3117ba40 [FIR] Git rid of creating new when and try fir nodes
It's necessary because of before change we safe original `when`
  without infered type as return statement of lambda and after that
  we add incorrect constraint system from it to outer call
2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 8085ec8b0b [FIR-TEST] Add test with ambiguity between java field and java accessor 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 3c661dd142 [FIR-TEST] Add test with unresolved invoke of lambda with receiver 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 96d3a06129 [FIR-TEST] Add test with hiding local functions 2019-11-27 15:00:03 +03:00
Dmitriy Novozhilov 5d14c76f70 [FIR-TEST] Add test with unresolved Array<T>.clone() 2019-11-27 15:00:02 +03:00
Dmitriy Novozhilov 4059fae1b7 [FIR-TEST] Add test with type mismatch on receiver with captured type 2019-11-27 15:00:02 +03:00
Dmitriy Novozhilov 572256e2eb [FIR-TEST] Add test with not-working bound smartcast 2019-11-27 15:00:02 +03:00
Mark Punzalan 1a2e09e6a5 ForLoopsLowering: Handle Iterable.withIndex() where the type is a
bounded type parameter.

TODO: Handle Sequences by extending DefaultIterableHandler.
2019-11-27 10:59:34 +01:00
Kevin Bierhoff e8252ea874 handle kotlin shifts like bitwise binary ops 2019-11-27 12:42:31 +03:00
Nikolay Krasko a9baec4727 Add headless mode for tests to avoid graphic card switch 2019-11-27 12:26:54 +03:00
Nikolay Krasko 54338686d4 Add test for lambda parameter type 2019-11-27 12:26:54 +03:00
Nikolay Krasko eb71e686da Stable order of generated annotation targets
A random order of usages is enabled in 193 platform that makes tests flaky without the commit.
2019-11-27 12:26:54 +03:00
Nikolay Krasko 592df477e9 Mute MultiModuleHighlightingTest tests 2019-11-27 12:26:54 +03:00
Denis Zharkov 00a70c51f0 FIR: Generate fake overrides always if there are type parameters
See the comment
2019-11-27 11:20:52 +03:00
Denis Zharkov 8efd59403d FIR: Avoid redundant substitution when type parameters don't change 2019-11-27 11:20:52 +03:00
Denis Zharkov 07a4352809 FIR: Add hack for Fir2IrVisitor
See the comment
2019-11-27 11:20:52 +03:00
Denis Zharkov 3b7ad066fc FIR: Substitute type alias constructors properly 2019-11-27 11:20:52 +03:00
Denis Zharkov f68929fe74 FIR: Leave functions type parameters in subsituting scope 2019-11-27 11:20:52 +03:00
Denis Zharkov b5ef063b0f FIR: Cache functions in use-site member scope 2019-11-27 11:20:52 +03:00
Denis Zharkov f659dc0bea FIR: Add synthetic values/valueOf methods to Java classes 2019-11-27 11:20:52 +03:00
Denis Zharkov 256f5ca0a1 FIR: Support inherited default parameters 2019-11-27 11:20:52 +03:00
Natalia Selezneva c9cb4dff52 Scripting: introduce ide-specific comparision of script compilation configurations (KT-34626)
Do not take into account fields that doesn't affect IDE
Also it will threat configurations from old and new scripting API as similar
FIt will make sense for script dependencies loaded using Gradle TAPI (new Scripting API) and Old Scripting API
^KT-34626
2019-11-27 11:08:45 +03:00
Natalia Selezneva 07b6dadbf0 Scripting: move additional classpath to the end of script classpath (KT-34626)
Do not add duplicated entries
Original script dependencies should go first
2019-11-27 11:08:44 +03:00
Natalia Selezneva 72e99b5863 Scripting: avoid just in case configuration requests to Gradle (KT-34442)
Listen to changes in files that may affect gradle configuration
Remove configuration request if none of such file was changed since last request
^KT-34442 Fixed
2019-11-27 11:08:44 +03:00
Natalia Selezneva f27e13035a Minor: introduce helper method to check registry option 2019-11-27 11:08:44 +03:00
Natalia Selezneva 7ade2ec576 Scripting: configurations from gradle import should be always taken into account (KT-34442)
Do not rely on registry option
^KT-34442
2019-11-27 11:08:44 +03:00
Natalia Selezneva 2f1915d85e Scripting: check that kotlin dsl models are provided during import as soon as possible 2019-11-27 11:08:44 +03:00
Dmitry Gridin 249789d6eb Formatter: add test for enum entry with comment
Relates to #KT-15980
2019-11-27 15:01:44 +07:00
Roman Artemev 97c8b2074e [JS] Set correct EXPECTED_REACHABLE_NODES 2019-11-27 00:06:42 +03:00
Igor Yakovlev 12f29bacab Exclude checking for unimplemented method for binary origin classes
Fixed #KT-34971
2019-11-26 21:13:10 +03:00
Mads Ager 8d5e5210a6 JVM_IR: Copy annotations to suspend function views. 2019-11-26 21:00:50 +03:00
Nicolay Mitropolsky 3d1061ee3c Uast: KotlinUMethodWithFakeLightDelegate 183-related fixes 2019-11-26 19:42:30 +03:00
Nicolay Mitropolsky c5fb51bd85 191: Uast: KotlinUMethod compilation fix 2019-11-26 19:42:29 +03:00
Leonid Startsev 19c28c55c5 Allow serialization plugin to work with inline types which are primitives (e.g. Char in JS IR) 2019-11-26 19:34:49 +03:00
Leonid Startsev ed786c4daf Enable compiler plugins in JS IR backend (and WASM too, since they use same loadIr function) 2019-11-26 19:34:48 +03:00
Jiaxiang Chen 0441e484a6 PSI2IR: For implicit function return, use expression's end offset as start offset of the IrReturn to generarate correct line number. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen e49431a12c Debug information test: make stepping information more readable. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen 331b085b2f JVM_IR: Fix line number for catch clause. 2019-11-26 17:59:28 +03:00
Jiaxiang Chen 3ea878b1c6 JVM_IR: Fix line number for varible initializer 2019-11-26 17:59:28 +03:00
Natalia Selezneva 8bb9c572ac Move inProgress lock at the onFinish of background task (KT-34688)
Setting inProgress to false inside run method can lead to multiple notifications because of delay between run method end and progress hide
^KT-34688 Fixed
2019-11-26 16:35:59 +03:00
Ilya Goncharov ad09492eb0 [Gradle, JS] Migrate on only name-version npm dependencies
#KT-32179 fixed
2019-11-26 16:05:17 +03:00
Ilya Goncharov 95b56e10b4 [Gradle, JS] Activate root npm dependency declaration for multiplatform 2019-11-26 16:04:37 +03:00
Ilya Goncharov 5397023f71 [Gradle, JS] Add Groovy Closure support 2019-11-26 16:04:37 +03:00
Ilya Goncharov 028c73d959 [Gradle, JS] Add compatible operators for npm dependencies 2019-11-26 16:04:37 +03:00
Ilya Goncharov 26cd392a9a [Gradle, JS] First steps for npm dependencies in root 2019-11-26 16:04:37 +03:00