Commit Graph

206 Commits

Author SHA1 Message Date
Ilmir Usmanov 00a08fc6a4 Minor. Add tests and comment about copying generic parameters to
constructor, but not function reference to the constructor.

 #KT-32162
2022-02-15 08:11:19 +01:00
Ilmir Usmanov 2fedb97d16 Correctly map nullable generic underlying value of inline class
if upper bound is primitive type.
 #KT-32162
2022-02-15 08:11:17 +01:00
Ilmir Usmanov cece7120df Minor. Add more tests 2022-02-15 08:11:13 +01:00
Ilmir Usmanov c8817893d4 Support default parameters of inline type with generic underlying value
#KT-32162
2022-02-15 08:11:11 +01:00
Ilmir Usmanov 4f95171472 Minor. Add tests 2022-02-15 08:11:10 +01:00
Ilmir Usmanov 9060168542 Support generic underlying type of inline class
Use upper bound in JVM representation.
 #KT-32162
2022-02-15 08:11:08 +01:00
Ilmir Usmanov 8f23fc54a4 Mangle bridges if its return type is not inline
#KT-51235 Fixed
2022-02-14 13:06:13 +01:00
Dmitriy Dolovov 7ad69ea8eb [Native][tests] Regenerated native tests 2022-02-14 13:50:40 +03:00
Dmitriy Dolovov 4f0785cbb2 [Native][tests] Rename test tag "klib" to "klib-abi" to be more specific 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov ca45252143 [Native][tests] Add separate Gradle tasks to run tests for stdlib and kotlin-test libraries 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 174f4cd220 [Native][tests] Rename Gradle task "externalTest" to "codegenBoxTest" 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov e5f819ffad [Native][tests] Allow using "test" task in dev environment 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 45abf752ec [Native][tests] Don't ignore test failures 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 22d5d7343b [Native][tests] Drop obsolete "kotlin.internal.native.test.useCache" property 2022-02-14 13:40:59 +03:00
Ilmir Usmanov 47ee0e5b0a Get type arguments from supertype in supercall
Otherwise, when the function has inline class parameter, we get ICE.
We do not get the error without inline class parameter, since we
substitute type parameters in limited situations, which includes
inline class lowering.

 #KT-51157 Fixed
2022-02-10 10:40:55 +01:00
Dmitriy Novozhilov 0eb526a8b4 [FE 1.0] Report warning about conflict in inherited members from deserialized dependencies
^KT-51194
^KT-51223 Fixed
2022-02-09 19:35:56 +03:00
Svyatoslav Scherbina 62c1bd0044 Native: fix using nested expect enum entry in a default argument
^KT-51156 Fixed
2022-02-09 14:41:11 +00:00
Svyatoslav Scherbina ff85d54c93 [Native][tests] Add full path to CLI compiler to the log
So the log now has a command to be run in terminal as is.
2022-02-09 12:47:20 +00:00
Ivan Kochurkin 5391ee91af [FIR2IR] Fix incorrect type of typealias for suspend functional type, ^KT-50997 Fixed 2022-02-07 17:21:59 +03:00
Ilya Matveev 23d606b053 [K/N][tests] Support setting GC scheduler in the new infra 2022-02-03 07:30:33 +00:00
Dmitry Petrov beb4cf3d99 PSI2IR KT-51036 fix lambda return value generation 2022-01-31 12:18:19 +00:00
Dmitriy Dolovov 2c3b2ccf6f [Native][tests] Fix failing black box tests due to misconfiguration 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 02022cf260 [Native][tests] Generate KLIB ABI tests twice - to run with and w/o cache 2022-01-28 16:23:36 +03:00
Dmitriy Dolovov 5d1884d8dc [Native][tests] Refactoring: Move configuration properties that can be overridden to class-level settings 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov 709101a56b [Native][tests] Refactoring: Extract configuration properties from NativeTestSupport 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov bfc7e3d825 [Native][tests] Use new Gradle property for cache mode 2022-01-28 16:23:35 +03:00
Ilya Matveev 1e78036a1b [K/N] Enable CMS GC by default for the new MM
Issue #KT-50713 Fixed
2022-01-28 12:24:57 +07:00
Mikhail Glukhikh eeadd8588d Drop CommonCompilerArguments.optInDeprecated
On the way to KT-22956
2022-01-27 11:48:22 +00:00
Mikhail Glukhikh ad0d0ca47f Drop redundant Suppress("RemoveExplicitTypeArguments") 2022-01-26 12:19:55 +00:00
Dmitriy Dolovov 02d74fbd87 [Native][tests] Pass "free compiler args" to static cache compilations
^KT-50775
2022-01-26 13:36:27 +03:00
Dmitriy Dolovov 33a09fbb77 [Native][tests] Support all cache modes in KLIB ABI tests
^KT-50775
2022-01-26 13:36:26 +03:00
Dmitriy Dolovov 008734f146 [Native][tests] Use fewer number of static cache directories
^KT-50775
2022-01-26 13:36:26 +03:00
Dmitriy Dolovov 255f97b771 [Native][tests] Support three modes for KLIB caches
^KT-50775
2022-01-26 13:36:26 +03:00
Dmitriy Dolovov 4b660d3503 [Native][tests] Load custom cache compiler args from konan.properties
^KT-50775
2022-01-26 13:36:26 +03:00
Dmitriy Dolovov f2bd2f3e7d [Native][tests] Keep KLIB dirs in KotlinNativeHome settings
^KT-50775
2022-01-26 13:36:26 +03:00
Dmitriy Dolovov 33ca8b528c [Native][tests] Support static cache as a separate compilation and dependency type
^KT-50775
2022-01-26 13:36:25 +03:00
Dmitriy Dolovov e03bfaee0b Minor. Comments fixed 2022-01-26 13:36:25 +03:00
Dmitriy Dolovov ca27eac254 [Native][tests] Refactoring: Use typed compilations and artifacts
^KT-50775
2022-01-26 13:36:25 +03:00
Dmitriy Dolovov 7df68af664 [IR, Native] KLIB ABI tests: backup but don't overwrite artifacts
^KT-50775
2022-01-26 13:36:25 +03:00
Dmitriy Dolovov 3648ae222c [IR, Native] KLIB ABI tests: add support to new test infrastructure
^KT-50775
2022-01-26 13:36:25 +03:00
Alexander Udalov f40a0ca704 JVM IR: avoid unnecessary toIrBasedKotlinType in ExpressionCodegen
Result of calling `ExpressionCodegen.gen` was used only in two call
sites in the inliner. In all other call sites, we were doing unnecessary
work (and sometimes were even failing) by trying to construct a
KotlinType instance out from an IrType.

Note that even though the code from KT-50617 no longer fails to compile,
the underlying problem is still not solved, since the IrType for foo's
dispatch receiver is constructed incorrectly. The reason is that
SymbolTable links everything by IdSignature, which is identical for
classes with the same FQ name.

 #KT-50617 Fixed
2022-01-20 16:05:42 +01:00
Ilmir Usmanov b794b0f1be Check if there is bridge by signatures instead of IR
#KT-50649 Fixed
2022-01-18 16:57:00 +03:00
Evgeniy.Zhelenskiy 7595f798e1 [JVM] Introduce MF Value Classes to frontend 2022-01-14 13:51:55 +00:00
Pavel Punegov 6f323dd33a [K/N][test] Ignore stdlib test in new infra 2022-01-14 08:15:09 +00:00
Dmitry Petrov d184babda6 JVM_IR fix cast to non-null primitive type (FIR bootstrap issue) 2022-01-13 12:47:00 +00:00
Dmitriy Dolovov 8ea6221932 Minor: Update comment 2022-01-11 22:05:01 +03:00
Pavel Punegov 276dcfb4a7 [K/N][test] Remove tests from excludes. Tests were excluded separately 2022-01-10 09:01:06 +00:00
Dmitry Petrov 4ad6cfcf53 JVM_IR fix cast to not-null type
We can't rely on argument type nullability here, because it still can
hold an uninitialized value on JVM.

KT-50577 KT-35272 KT-27427
2021-12-30 13:41:17 +03:00
Alexander Udalov d5372521f1 Add tests for obsolete issues
#KT-12126
 #KT-12189
 #KT-23628
 #KT-24209
 #KT-34338
 #KT-47279
 #KT-48498
2021-12-29 17:07:03 +00:00
Dmitry Petrov 5946242d75 JVM_IR fix special bridges in mixed Java/Kotlin hierarchies
KT-50257 KT-50476
2021-12-29 13:29:19 +00:00