Alexander Udalov
3c4e5d7615
Fix JvmFieldInInterfaceCompanion.kt for language version 1.4
...
Since 1.4, constant value is no longer written to the class file (and
thus cannot be read) for non-const properties. But in sources,
corresponding property descriptors still have the initializer which is
rendered to text. Therefore we disable the source-vs-binary check and
update the test data to check the new behavior.
2020-01-17 20:35:46 +01:00
Mikhail Zarechenskiy
58c235e722
Set up tests for fun interfaces for JVM backend for now
2020-01-17 19:37:48 +03:00
Mikhail Zarechenskiy
76a78fe918
FIC: render fun before interfaces in descriptor renderer
2020-01-17 19:37:48 +03:00
Mikhail Zarechenskiy
8350cf7d14
FIC: rename FunctionConversion -> FunctionalConversion
2020-01-17 19:37:47 +03:00
Mikhail Zarechenskiy
27e104187f
FIC: remove isFun from IR proto as conversion should happen in psi2ir
2020-01-17 19:36:12 +03:00
Mikhail Zarechenskiy
8206cadce2
FIC: support fun interfaces in stub builder
2020-01-17 19:36:12 +03:00
Mikhail Zarechenskiy
70094884ca
FIC: support suspend conversions in jvm codegen
2020-01-17 19:36:11 +03:00
Mikhail Zarechenskiy
b98d8bd7c1
Regenerate tests after rebase on master, add FIR tests
2020-01-17 19:36:11 +03:00
Mikhail Zarechenskiy
3849b5e723
FIC: add codegen tests, adapt previously tests for SAMs
2020-01-17 19:36:09 +03:00
Mikhail Zarechenskiy
b7c43fc7db
Refactoring: move test folder out of "inline classes" folder
...
It was added there by mistake
2020-01-17 19:36:08 +03:00
Mikhail Zarechenskiy
0e90d538df
FIC: propagate info about conversions for deserialized classes
2020-01-17 19:36:08 +03:00
Mikhail Zarechenskiy
0fdebdfeba
Refactoring: move SamConversionResolverImpl to core module
2020-01-17 19:36:07 +03:00
Mikhail Zarechenskiy
cd5c1b96bb
Refactoring: move SamConversionResolver to more applicable package
2020-01-17 19:36:07 +03:00
Mikhail Zarechenskiy
c93c82236c
Refactoring: move common parts about SAMs to frontend module
2020-01-17 19:36:06 +03:00
Mikhail Zarechenskiy
fc32e8b017
FIC: Add synthetic constructors for fun interfaces aka explicit FIC
2020-01-17 19:36:05 +03:00
Mikhail Zarechenskiy
0f242a9931
FIC: Support conversions for suspend functions
2020-01-17 19:36:04 +03:00
Mikhail Zarechenskiy
f43769c50d
FIC: Add diagnostic tests
2020-01-17 19:36:03 +03:00
Mikhail Zarechenskiy
562f0e62a3
FIC: Move sam related methods to ClassDescriptor, fix JVM backend part
2020-01-17 19:36:03 +03:00
Mikhail Zarechenskiy
87e79e72a9
Refactoring: move SamConversionResolver to core.descriptors
2020-01-17 19:36:02 +03:00
Mikhail Zarechenskiy
0ee977c42e
FIC: Support base version of conversions in JVM backend
...
Proper support for JVM backend will be in the further commmits
2020-01-17 19:36:02 +03:00
Mikhail Zarechenskiy
c71c1d45c6
FIC: Make SAM conversions also for fun interfaces, add base test
2020-01-17 19:36:01 +03:00
Mikhail Zarechenskiy
193d807a1e
Refactoring: make parameters of getFunctionTypeForSamType not null
2020-01-17 19:36:01 +03:00
Mikhail Zarechenskiy
55935cc98a
FIC: introduce language feature, modifiers checks and basic tests
2020-01-17 19:36:00 +03:00
Mikhail Zarechenskiy
f7ce1c669b
FIC: Introduce isFun property for descriptors and proto
2020-01-17 19:35:06 +03:00
Mikhail Zarechenskiy
6655f0fc4c
FIC: Increase STUB version because of changes in parser for declarations
2020-01-17 19:35:05 +03:00
Mikhail Zarechenskiy
4aa195e912
FIC: Parse fun keyword in front of interface as a modifier
2020-01-17 19:35:05 +03:00
Georgy Bronnikov
174b3db723
IR: capture more type parameters for local functions.
...
Types of value parameters and captured variables, even unused, need to
be considered.
2020-01-17 19:20:19 +03:00
Victor Petukhov
437a26684d
NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed and remember flexibility of type parameters based on flexibility of its upper bounds
...
^KT-32435 Fixed
2020-01-17 19:16:09 +03:00
Victor Petukhov
68576da494
Temporary change sinceVersion to null for ProhibitVarargAsArrayAfterSamArgument
...
It will be set to `KOTLIN_1_5` as it will be added.
2020-01-17 19:04:04 +03:00
Steven Schäfer
a49ed1eca2
JVM IR: Generate interface delegations for specialized interface defaults
2020-01-17 18:19:26 +03:00
Steven Schäfer
8746d08dd5
JVM IR: Don't skip bridge generation for concrete fake overrides
2020-01-17 18:19:26 +03:00
Steven Schäfer
c027c0e659
JVM IR: Handle special names for overridden Enum.name/ordinal in MethodSignatureMapper
2020-01-17 18:19:26 +03:00
Dmitry Gridin
d013fc2234
Formatter: support trailing comma in when entry
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
4adfaab3ec
Formatter: support trailing comma in lambda parameters
...
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin
bf92517500
KtVisitorVoid: add missing visitCollectionLiteralExpression
2020-01-17 21:02:52 +07:00
Alexander Udalov
463728a96a
Fix compiler test on Throws+delegation for 1.4
...
No exceptions are generated for delegation in 1.4 (see KT-35834).
2020-01-17 12:47:20 +01:00
Alexander Udalov
de683c0768
JVM IR: mute more tests after advancing language to 1.4
2020-01-17 12:47:20 +01:00
Dmitry Petrov
135cd6fd77
Enable ProperIeee754Comparisons in KOTLIN_1_4
2020-01-17 14:15:32 +03:00
Dmitry Petrov
933ac3a16b
Fix nullable number comparisons in JS
2020-01-17 14:14:59 +03:00
Dmitry Petrov
f8341ad7eb
JVM: Update tests for IEEE 754 comparisons
2020-01-17 14:14:59 +03:00
Dmitry Petrov
d5ff1047a5
JVM: Fix IEEE 754 comparison generation for boxed numbers
2020-01-17 14:14:58 +03:00
Alexander Udalov
26f435eb90
JVM IR: mute tests which fail after advancing language to 1.4
2020-01-17 12:07:30 +01:00
Alexander Udalov
e7864c7351
Fix inlineCallsStaticMethodFromOtherPackage.kt by disabling related language feature
...
This test is not possible for 1.4, where protected calls from public
inline functions are prohibited.
2020-01-17 12:07:30 +01:00
pyos
82ddd700ce
JVM_IR: patch parents of defaults in MemoizedInlineClassReplacements
...
A minor fix for #2909
2020-01-17 11:03:04 +03:00
Dmitriy Novozhilov
76b3964e96
Update testdata according to change compiler version to 1.4
2020-01-17 10:33:50 +03:00
Nikolay Krasko
ca49672a7a
Advance version to 1.4
2020-01-17 10:33:50 +03:00
Nikolay Krasko
fd8ff463bb
JUnit 4 runner for ignoring muted tests
2020-01-16 20:37:58 +03:00
Mikhail Zarechenskiy
4f74515508
[NI] Fix CST calculation for covariant type projections
2020-01-16 17:18:20 +03:00
pyos
6e6f4d0503
IR: close over the set of captured type parameters
2020-01-16 16:37:40 +03:00
Ilya Gorbunov
3d7c7c4656
Add problem zip file name when unable to open it
2020-01-16 16:01:55 +03:00