Commit Graph

85774 Commits

Author SHA1 Message Date
Roman Artemev 3b53c97c2c [JS IR] Fix test data 'kt -> ir -> klib -> ir -> js' aka prod mode
- fix order in dts tests
 - unmute fixed test in prod mode
 - mute filing expect-actual link test in prod mode
2021-09-13 13:44:46 +03:00
Dmitriy Novozhilov 24a16a0c62 Advance bootstrap to 1.6.20-dev-1402 2021-09-13 09:17:24 +03:00
Ilmir Usmanov ca72ba5538 Minor. Regenerate tests 2021-09-13 04:51:10 +03:00
pyos 0f2937bae5 JVM_IR: use nullability when boxing/unboxing inline class types
Given inline class V(Any?), a coercion from (Object, V) to (Object, V?)
is boxing.

In theory, the same issue in the old backend can be fixed by making
`KotlinTypeMapper.mapUnderlyingTypeOfInlineClassType` use
`computeExpandedTypeForInlineClass`, but for some reason this breaks a
lot of stuff.

 #KT-48430 Fixed
2021-09-13 04:51:08 +03:00
Dmitriy Novozhilov 70e8d23d6b Fix new warnings in project code 2021-09-12 16:19:33 +03:00
Dmitriy Novozhilov 7a7672b0de [FE 1.0] Fix reporting of non exhaustive when statement for whens with subject
^KT-48653 Fixed
2021-09-12 16:04:18 +03:00
Nikolay Lunyak f6ae6af741 [FIR] Add test data 2021-09-11 22:05:43 +03:00
Nikolay Lunyak 4e56ba2fa4 [FIR] Forbid backing fields for delegated properties 2021-09-11 22:05:43 +03:00
Nikolay Lunyak e4473ad94c [FIR2IR] Add Fir2IrSpecificBytecodeListing tests support 2021-09-11 22:05:42 +03:00
Nikolay Lunyak 6b532ccd0d [FIR] Allow lateinit FirBackingField's 2021-09-11 22:05:41 +03:00
Nikolay Lunyak 871aebd423 [FIR] Make FirBackingField initializer optional 2021-09-11 22:05:41 +03:00
Nikolay Lunyak 3a3ef161d1 [FIR] Add a REDUNDANT_EXPLICIT_BACKING_FIELD warning 2021-09-11 22:05:40 +03:00
Nikolay Lunyak 66beecfb18 [FIR] Improve backing field diagnostics positioning 2021-09-11 22:05:40 +03:00
Nikolay Lunyak 2aafe84eef [FIR] Forbid explicit backing fields in extension properties 2021-09-11 22:05:39 +03:00
Nikolay Lunyak d5ddd3cee3 [FIR] Fix backingField usage in FirVolatileAnnotationChecker 2021-09-11 22:05:39 +03:00
Nikolay Lunyak e571de5942 [FIR] Fix dumpKotlinLike 2021-09-11 22:05:38 +03:00
Nikolay Lunyak 79ceaf03bf [FIR] Add ir support 2021-09-11 22:05:38 +03:00
Nikolay Lunyak 8b918e12b2 [FIR] Simplify FirPropertyFieldDeclarationChecker 2021-09-11 22:05:37 +03:00
Nikolay Lunyak 30e52186eb [FIR] Make default accessors always present 2021-09-11 22:05:37 +03:00
Nikolay Lunyak cc0d63117a [FIR] Add property type narrowing 2021-09-11 22:05:36 +03:00
Nikolay Lunyak 56b2a984ce [FIR] Quick fix FirModifierChecker 2021-09-11 22:05:35 +03:00
Nikolay Lunyak 25124cca3d [FIR] Add an interface/abstract checker for the backing field 2021-09-11 22:05:35 +03:00
Nikolay Lunyak aefd6c30ad [FIR] Merge FirPropertyFieldDeclarationSymbol into FirBackingFieldSymbol 2021-09-11 22:05:34 +03:00
Nikolay Lunyak 1291f9e460 [FIR] Add missing getters generation 2021-09-11 22:05:34 +03:00
Nikolay Lunyak b72488b4c2 [FIR] Add replaceGetter & replaceSetter 2021-09-11 22:05:33 +03:00
Nikolay Lunyak 47abdf2de1 [FIR] Add a modifiers diagnostic for the backing field 2021-09-11 22:05:33 +03:00
Nikolay Lunyak d4d43b9907 [FIR] Add type-related diagnostics for the backing field 2021-09-11 22:05:32 +03:00
Nikolay Lunyak d2124e1ec6 [FIR] Add checkers support for FirBackingField 2021-09-11 22:05:31 +03:00
Nikolay Lunyak 7a522ade15 [FIR] Add isSubtypeOf function 2021-09-11 22:05:30 +03:00
Nikolay Lunyak 38079372e1 [FIR] Add RawFirBuilder & DeclarationsConverter support 2021-09-11 22:05:29 +03:00
Nikolay Lunyak ee58df6b3c [FIR] Add FirBackingField 2021-09-11 22:05:29 +03:00
Nikolay Lunyak a0982341ee [FIR] Update parser test data 2021-09-11 22:05:28 +03:00
Nikolay Lunyak 6776930881 [FIR] Forbid explicit backing fields for FE 1.0 2021-09-11 22:05:27 +03:00
Nikolay Lunyak 37f832bc2f [FIR] Add KtBackingField (see: KT-CR-4119, KT-14663) 2021-09-11 22:05:26 +03:00
Nikolay Lunyak 654ed3caf6 [FIR] Add propertySymbol to property accessors 2021-09-11 22:05:25 +03:00
Roman Golyshev e34b64d6f2 [FIR IDE] Make KtFirImportOptimizer more robust to reference errors 2021-09-11 14:57:01 +03:00
Aleksei.Cherepanov cc5382b37e [JPS] Fix incremental build after changing Java constant
InlineConstantTracker implemented for tracking changed java static final constants, that used in kotlin.

#KT-46506 Fixed
2021-09-11 13:00:00 +03:00
pyos 23420ecf7a IR: do not infer array element types for non-annotation constants
While annotations restrict the set of allowed types to a few final
built-ins, in arbitrary constants we can have array elements that are
some subtype of the array's element type.

 #KT-48671 Fixed
2021-09-10 21:55:15 +02:00
Pavel Kunyavskiy 51c85e7f86 [K/N] Safer handling of bridges function in dce 2021-09-10 15:58:42 +00:00
Mikhail Glukhikh 007cf2ce7c Rename AnalysisFlags.useExperimental to optIn 2021-09-10 16:29:18 +03:00
Mikhail Glukhikh aedcec7715 Drop unused LanguageSettingsDirectives.EXPERIMENTAL 2021-09-10 16:29:17 +03:00
Mikhail Glukhikh fc6403679a Rename !USE_EXPERIMENTAL test directive to !OPT_IN 2021-09-10 16:29:16 +03:00
Mikhail Glukhikh 3febabe977 Use OPT_IN instead of EXPERIMENTAL in diagnostic names 2021-09-10 16:29:13 +03:00
Sergej Jaskiewicz 2f07589b42 [JS IR] Avoid name clashes for @JsQualifier-annotated declarations
#KT-42039 Fixed
2021-09-10 15:48:43 +03:00
Sergej Jaskiewicz 681ff2dcec [test] Add missing whitespaces 2021-09-10 15:48:40 +03:00
Roman Golyshev 9d6a3edbe2 [FIR] Make copyAsImplicitInvokeCall inline 2021-09-10 14:06:17 +03:00
Pavel Kunyavskiy 7e58660ce2 [K/N] Emmit error on using @SymbolName with new mm 2021-09-10 07:46:39 +00:00
Pavel Kunyavskiy ca9ec76c08 [K/N] Replace SymbolName with GCUnsafeCall in interop 2021-09-10 07:46:39 +00:00
Pavel Kunyavskiy 91c6ee1ebb [K/N] Replace SymbolName with GCUnsafeCall in stdlib 2021-09-10 07:46:39 +00:00
Tianyu Geng 05fbed68e2 FIR checker: report PROPERTY_AS_OPERATOR 2021-09-10 07:07:43 +03:00