Mikhail Glukhikh
c0f8be5d4e
[FIR2IR] Generate setter call for assignments, if any
2020-03-18 17:09:35 +03:00
Alexander Udalov
d668808b44
Migrate Experimental->RequiresOptIn in project sources
2020-03-10 12:07:15 +01:00
Alexander Udalov
795d6ab407
Migrate UseExperimental->OptIn in project sources
2020-03-10 12:07:14 +01:00
Mikhail Glukhikh
0fee8a6946
FIR2IR: cache functions and their parents properly
2020-03-04 16:55:33 +03:00
Mikhail Glukhikh
cfa626ad77
FIR2IR: introduce conversion scope, remove dispatch receiver for lambdas
2020-03-04 16:55:31 +03:00
Mikhail Zarechenskiy
5393074d61
[NI] Update type of complex subcall for last lambda expressions
2020-02-25 15:26:25 +03:00
Pavel Kirpichenkov
a50911156d
[NI] Add regression tests for builder inference
...
Actual fix is c02dd720
^KT-33542 Fixed
^KT-33544 Fixed
^KT-36446 Fixed
2020-02-18 19:12:53 +03:00
Mikhail Zarechenskiy
4542f3b720
[NI] Finish analysis for coerced last lambda expressions if needed
2020-02-17 10:29:45 +03:00
Juan Chen
7249d2f889
[FIR] Fix translation of invokes & add return expressions for lambdas
...
* fixed NoSuchMethod caused by mismatched signatures of the "invoke" method generated for lambda arguments
* added test cases in invoke.kt for KFunction and anonymous functions
* added a transformer to wrap the last expression in the bodies of lambdas with return
2020-02-06 12:44:14 +03:00
Dmitriy Novozhilov
3428a17759
[NI] Postpone calls with not enough information in builder inference
2020-01-15 14:01:25 +03:00
Alexander Udalov
7742a3b697
Rename UseExperimental->OptIn, Experimental->RequiresOptIn in compiler tests
2020-01-14 21:04:42 +01:00
Dmitriy Novozhilov
b54169d312
[NI] Fix substitution in completion of callable references in coroutine inference
2019-12-25 16:19:19 +03:00
Dmitriy Novozhilov
c94dd2939e
[NI] Add test for KT-32429
...
#KT-32429 Can't Reproduce
2019-12-20 11:33:06 +03:00
Mark Punzalan
5afab1ac2b
[FIR] FIR2IR: Populate calls with type arguments and function type
...
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00
Mark Punzalan
9df2f69f09
[FIR] Disable failing blackbox codegen tests for FIR.
2019-11-19 11:00:09 +03:00
Mikhail Zarechenskiy
268dddcb3d
Remove restriction about JS_IR backend for test
2019-05-31 17:23:58 +03:00
Dmitriy Novozhilov
bcbbf4aba3
[NI] Fix replacing original in PropertyDescriptor
2019-05-30 11:01:10 +03:00
Mikhail Zarechenskiy
f702417655
[NI] Relax rules for call completion: require at least one constraint
...
It's enough to have at least one good constraint.
Note that the whole algorithm can be a bit more general:
we could check also Out<T>, In<T> and verify that T has good only
lower constraint or upper constraint, but there are questions for
types like Inv<Out<T>>, where T should have lower and upper constraints
#KT-31514 Fixed
2019-05-29 02:14:00 +03:00
Mikhael Bogdanov
007af75e1e
Properly calculate call site file in JVM IR inliner
2019-05-21 07:42:16 +02:00
Roman Artemev
c352117eab
[JS IR BE] Set correct runtime for JS IR BE tests
2019-05-16 19:27:41 +03:00
Dmitriy Novozhilov
f5ca69c324
[NI] Add codegen test for IntegerLiteralType for js backend
2019-03-29 17:38:55 +03:00
Dmitriy Novozhilov
719e25c3dd
[NI] Fix testdata of codegen test for IntegerLiteralType
2019-03-29 15:20:53 +03:00
Dmitriy Novozhilov
4a1b9dcc3c
[NI] fix approximation of not denotable types in lambda's function descriptors
2019-03-29 11:54:37 +03:00
Mikhail Zarechenskiy
1594c1fc6b
[NI] Don't consider Nothing-constraint as proper to complete call
...
Follow-up of 9b3e17f0 . There we decided to complete call if a type
variable from a return type has proper lower constraints, now we refine
this rule wrt `Nothing`-like constraints to avoid inferring type variables
to Nothing, which is quite useless
#KT-30370 Fixed
2019-03-11 19:14:29 +03:00
Mikhail Zarechenskiy
66a00f442c
Add tests for obsolete issues
...
#KT-12008 Obsolete
#KT-11881 Obsolete
#KT-10822 Obsolete
2018-09-11 12:34:09 +03:00