Yahor Berdnikau
b71b7abc2b
Migrate JavaUpToDateIT test to new test DSL.
...
^KT-45747 In Progress
2021-09-13 22:50:09 +02:00
Roman Golyshev
3c69a5efc8
[FIR IDE] Handle FirBackingField in buildVariableLikeSymbol
...
Do a small refactoring of `buildBackingFieldSymbol`
2021-09-13 21:58:01 +03:00
Roman Golyshev
57608d7eeb
Use correct elementType in KotlinBackingFieldStubImpl constructor
2021-09-13 21:58:00 +03:00
Ivan Kochurkin
a816bd9a33
[FIR] Add JVM_INLINE_WITHOUT_VALUE_CLASS, VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION
2021-09-13 20:49:00 +03:00
Ivan Kochurkin
7e7066d75e
[FIR] Add FUNCTION_DELEGATE_MEMBER_NAME_CLASH
2021-09-13 20:48:59 +03:00
Ivan Kochurkin
a5caa14255
[FIR] Add SPREAD_ON_SIGNATURE_POLYMORPHIC_CALL
2021-09-13 20:48:59 +03:00
Ivan Kochurkin
5760a94ab4
[FIR] Add CONCURRENT_HASH_MAP_CONTAINS_OPERATOR
2021-09-13 20:48:58 +03:00
Ivan Kochurkin
0ffd6ccb34
[FIR] Add SUSPENSION_POINT_INSIDE_CRITICAL_SECTION
2021-09-13 20:48:57 +03:00
Ivan Kochurkin
e97933a9e5
[FIR] Add POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION
2021-09-13 20:48:55 +03:00
Ivan Kochurkin
dd46c36b24
[FIR] Add SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC
2021-09-13 20:48:54 +03:00
Ilya Kirillov
55990f65cb
FIR LC: fix vararg parameter type
...
After fix in KtParamterSymbol, vararg parameter type now is a non-array type
2021-09-13 19:18:02 +02:00
Jinseong Jeon
cabc47516a
FIR IDE: check backing field with BODY_RESOLVE
2021-09-13 19:12:35 +02:00
Mark Punzalan
f4c5f02bfe
HL API: Use array element type as type of vararg KtValueParameterSymbol.
2021-09-13 19:12:34 +02:00
Viacheslav Kormushkin
8dd40cb398
KT-MR-4412: Fix CocoaPodsIT tests
...
#KT-48700
2021-09-13 15:56:34 +00:00
Igor Yakovlev
b948ef4bd6
[FIR IDE] Resolve tree builder
2021-09-13 17:32:32 +03:00
Ivan Kochurkin
07edb15138
[FIR] Expand typealias for correct approximation of types (particularly Int and Long)
2021-09-13 14:28:26 +00:00
Pavel Punegov
3d58a70e62
[Native][Tests] Rename USE_EXPERIMENTAL directive to OPT_IN
...
See fc6403679a
2021-09-13 14:08:32 +00:00
Dmitriy Novozhilov
d390f881c8
[FE 1.0] Record USED_AS_EXPRESSION for unreachable CFG nodes
...
^KT-48708 Fixed
2021-09-13 16:22:50 +03:00
Igor Chevdar
8464b15d27
[K/N][IR] Fix for https://youtrack.jetbrains.com/issue/KT-48559
...
Aligned SAM conversion lowering with the JVM's one
Also refactored other places with erasure
2021-09-13 16:49:39 +05:00
Dmitry Gridin
72752473bf
[light classes] KtLightClassForSourceDeclaration: update equals and hashCode to fix PluginException
...
^KTIJ-19042 Fixed
^EA-357501 Fixed
2021-09-13 11:43:22 +00:00
Igor Chevdar
23a02be169
[K/N][IR] Fix for https://youtrack.jetbrains.com/issue/KT-48527
2021-09-13 16:41:37 +05:00
Dmitriy Novozhilov
feeeb16377
[FIR] Fix consistency tests
2021-09-13 13:53:15 +03:00
Dmitriy Novozhilov
765b389875
[FIR] Mute failing test due to KT-48675
2021-09-13 13:53:14 +03:00
Dmitriy Novozhilov
81790fee9b
[FIR IDE] Add @TestDataFile to AbstractLowLevelApiTest
...
This is needed to correct work of `Go to testdata` action
2021-09-13 13:53:14 +03:00
Dmitriy Novozhilov
d1db9b17e5
[FIR] Add workaround for KT-48675
2021-09-13 13:53:13 +03:00
Dmitriy Novozhilov
5769d42248
[FIR] Fix all usages of annotations due to new FirAnnotation hierarchy
2021-09-13 13:53:12 +03:00
Dmitriy Novozhilov
2e7564a21e
[FIR] Properly create FirAnnotation and FirAnnotationCall in all places
2021-09-13 13:53:12 +03:00
Dmitriy Novozhilov
31a7d8d5a4
[FIR] Split FirAnnotation into FirAnnotation and FirAnnotationCall
...
FirAnnotation represents simple annotation placed on some element.
This element contains only annotation type ref and simple argument
mapping
FirAnnotationCall is a element for call of annotation (`@Ann(args)`)
which was written in user code. FirAnnotationCall is a resolvable call
2021-09-13 13:53:11 +03:00
Dmitriy Novozhilov
52e339593e
[FIR] Infer name of FIR elements in generator from property name
2021-09-13 13:53:10 +03:00
Dmitriy Novozhilov
4b662a42a1
[FIR] Rename FirAnnotationCall to FirAnnotation
2021-09-13 13:53:09 +03:00
Dmitriy Novozhilov
a7353d5a02
[FIR] Remove redundant deprecated annotation
2021-09-13 13:53:08 +03:00
Dmitriy Novozhilov
728df8127c
[FIR] Unify FirResolvedArgumentList with FirPartiallyResolvedArgumentList
...
Effectively FirPartiallyResolvedArgumentList was resolved argument list
for error calls, so not all arguments had proper value parameter. So
FirPartiallyResolvedArgumentList now inherits FirResolvedArgumentList
and renamed to FirResolvedArgumentListForErrorCall
2021-09-13 13:53:08 +03:00
Dmitriy Novozhilov
8904d6fde9
[FIR] Remove BodyBuildingMode.STUBS from RawFirBuilder
2021-09-13 13:53:07 +03:00
Dmitriy Novozhilov
116a1c1e46
[FIR] Remove stubMode flag from RawFirBuilder and LightTree2Fir converter
2021-09-13 13:53:05 +03:00
Roman Artemev
a2e4ebd820
[JS IC] Support //RECOMPILE directive in js box tests
...
- change test runner to production mode when sources are being compiled
into klib and then klib is being translated into js, not directly from
kt to js
- fix IC cache format
- support IC tests
2021-09-13 13:44:55 +03:00
Roman Artemev
6b2fee7143
[JS IC] Add holder class for incremental codegen cache
2021-09-13 13:44:54 +03:00
Roman Artemev
08aa909569
[JS IC] Add API to save/restore binary AST into IR codegen cache
...
- Add EMPTY stubs for cache accessors
2021-09-13 13:44:49 +03:00
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