Commit Graph

80784 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 2bd73cc44e Consolidate type adapters generation in ObjCExportCodeGenerator 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 8519be28b4 Drop more usages of IrDeclaration.descriptor from ObjCExportCodeGenerator 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 4080a852e1 Add selector and method bridge to relevant ObjCMethodSpec types
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina ccf8b570ca Add selector to ObjCGetterForKotlinEnumEntry
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina ca2df3cead Add specific ObjCMethodSpec kind for object instance getters
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina e305710d91 Add tests for overriding Kotlin methods from Swift 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 0a2a8a58c1 Add test for overriding methods of Any from Swift 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 9fb2d4b956 Remove unused code from ObjCExportCodeGenerator 2021-02-09 09:00:47 +01:00
Dmitriy Dolovov a3e3e89223 [samples] 1.4.30 2021-02-09 09:00:47 +01:00
Ilya Matveev e45c2d31bc [kotlin.test] Do not run test suites containing only ignored tests
Popular frameworks such as JUnit, TestNG and Google Test do not
run @BeforeClass/@AfterClass hooks of test suites containing only
ignored tests.

This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.

See also: #4522, #4615.
2021-02-09 09:00:47 +01:00
Ilya Matveev 4f037b8b81 [kotlin.test] Don't run filtered out test suites by default
Popular frameworks such as JUnit, TestNG and Google Test do not
run test suites whose tests were fully filtered out. Thus
@BeforeClass/@AfterClass of such suites are not executed and the
suites are not reported in a test report.

This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.

See also: #4522, #4615.
2021-02-09 09:00:47 +01:00
Egor Zhdan c866dc7303 Fix reporting of filtered out test suites
This fixes the `--ktest_no_excluded_test_suites` command line option behavior to match its description in the help page.
2021-02-09 09:00:47 +01:00
Sergey Bogolepov 76cac9fba0 Fix KT-43502 testcase on windows 2021-02-09 09:00:47 +01:00
SvyatoslavScherbina 14a17fb0ca Bump konanVersion: 1.5.20 2021-02-09 09:00:47 +01:00
Dmitriy Dolovov 1ba39c9244 Add missing entry for 1.4.30-M1 changelog 2021-02-09 09:00:47 +01:00
Dmitriy Dolovov b15073a6b5 1.4.30 changelog 2021-02-09 09:00:47 +01:00
Alexander Shabalin f312315346 Call initRuntimeIfNeeded before EnterFrame in interop adapters. (#4672) 2021-02-09 09:00:47 +01:00
Alexander Shabalin 99dc9e8e0c Relax setUnhandledExceptionHook requirements with the new MM (#4675) 2021-02-09 09:00:46 +01:00
Alexander Shabalin 2b69a0d03a Fix InitAndRegisterGlobal in new MM (#4673) 2021-02-09 09:00:46 +01:00
Sergey Bogolepov c01ad100a3 Adapt fix for KT-43502 to lazy task configuration 2021-02-09 09:00:46 +01:00
Sergey Bogolepov d82109cc92 Fix KT-43502 by adding -fPIC 2021-02-09 09:00:46 +01:00
Sergey Bogolepov 0a33d9d2fc Add a test-case for KT-43502 2021-02-09 09:00:46 +01:00
Sergey Bogolepov 5a18a565b7 Support interop libraries in dynamic tests 2021-02-09 09:00:46 +01:00
Florian Kistner 438e1d34c5 Restore previous exception behavior for -Xemit-lazy-objc-header 2021-02-09 09:00:46 +01:00
Florian Kistner 0025bef59a Cleanup unused ObjCExportHeaderGenerator constructors 2021-02-09 09:00:46 +01:00
Florian Kistner b6b7a0e1eb Rename ObjC warning collector to problem collector 2021-02-09 09:00:46 +01:00
Florian Kistner 846d691b2d Extend ObjC warning collector to handle exceptions as well 2021-02-09 09:00:46 +01:00
Alexander Shabalin 3bf1f55990 Handle nullptr in StablePointer API (#4671) 2021-02-09 09:00:46 +01:00
Alexander Shabalin 9295d7cf60 Fix single-thread check 2021-02-09 09:00:46 +01:00
Alexander Shabalin 5b6a8a3bdb Make freezing stuff non-terminating TODO 2021-02-09 09:00:46 +01:00
Georgy Bronnikov 9b6f95faa2 FIR: report lowering time in FullPipelineModularizedTest 2021-02-09 10:59:35 +03:00
Georgy Bronnikov 1664eec7e4 FIR: report lowering time from JvmIrCodegenFactory 2021-02-09 10:59:35 +03:00
Pavel Kirpichenkov 75954dd1a4 Minor: refactor extended compiler checks
Use an analysis flag instead of a stub language feature
2021-02-08 18:47:30 +03:00
Pavel Kirpichenkov 2a46da906c Provide additional information about missing supertypes
Add -X flag to report extra compiler diagnostics which migth break compatibility.
Use the flag to unconditionally check constructors without fear of
prematurely evaluating lazy supertypes.

KT-19234
KT-42404
KT-44583
2021-02-08 18:47:30 +03:00
Mikhail Glukhikh 4a381d4b83 FIR DFA: update receivers properly in case of single flow in merge point 2021-02-08 18:23:44 +03:00
pyos d96921e287 FIR2IR: collect annotations when expanding type aliases 2021-02-08 18:23:19 +03:00
Vladimir Dolzhenko 872effc21e Check declaration modifier for actual method to avoid freeze
Checking modifier aims to get rid of unnecessary resolve for methods in non MPP (the most) cases

Relates to #KTIJ-1200
2021-02-08 14:43:19 +00:00
Muhammad Hakim Asy'ari 3e17317f31 Update steps to install JDK 6 on Mac OS (#4052) 2021-02-08 16:41:38 +03:00
Mikhail Glukhikh d4b0688690 FIR: introduce delegate field initializers
Before this commit we initialized delegate fields in primary constructor,
that could provoke NPE in case delegate is used in initializer of
some property backing field.
Now we initialize delegate fields directly instead.
2021-02-08 14:28:27 +03:00
Mikhail Glukhikh 2cbdad0bb1 FIR2IR: insert implicit cast of receiver to Any for interface Any calls 2021-02-08 14:28:26 +03:00
Mikhail Glukhikh 1c210c2386 FIR: fix of super.methodOfAny resolve in case of one supertype 2021-02-08 14:28:25 +03:00
Mikhail Glukhikh 694d69fbfa FIR2IR: select return target inside accessor properly 2021-02-08 14:28:24 +03:00
Ilya Goncharov 19bffc694b [JS IR] Add test with chain export--not-export--export
^KT-44616 fixed
2021-02-08 13:41:16 +03:00
Ilya Goncharov 76b124a9c0 [JS IR] Method of any is exported
^KT-44616 fixed
2021-02-08 13:40:39 +03:00
Ilya Goncharov 7b4624aac4 [JS IR] Add exported method into exportNestedClass.kt
^KT-44616 fixed
2021-02-08 13:38:47 +03:00
Ilya Goncharov 6c051b2be4 [JS IR] Override method are not exported
[JS IR] Add test with jsexport overrides not js export method with stable name

^KT-44616 fixed
2021-02-08 13:38:30 +03:00
Jinseong Jeon a9322a01ce FIR checker: avoid redundant casting to resolved type ref 2021-02-08 13:01:12 +03:00
Jinseong Jeon 37a702b962 FIR: coerce to Unit when a lambda has early returns
^KT-39075 Fixed
2021-02-08 13:01:12 +03:00
Jinseong Jeon 83e3201677 FIR DFA: correct exit node retrieval when a safe call is the last expression
^KT-44699 Fixed
2021-02-08 13:01:11 +03:00
Jinseong Jeon 266432a482 FIR checker: fix condition for property type mismatch on override 2021-02-08 13:01:11 +03:00