pyos
803abfeba8
FIR: rewrite lambda return type inference
...
* `return` should only be added to the last statement if the return
type is not Unit
* If there is a `return` without an argument, then the expected return
type is Unit and the last expression is not a return argument (unless
it's an incomplete call, in which case it is inferred to return Unit;
this behavior is questionable, but inherited from K1)
* There should be a constraint on return arguments even if the expected
type is Unit, otherwise errors will be missed
* When the expected type is known, using the call completion results
writer is pointless (and probably subtly wrong).
^KT-54742 Fixed
2023-01-10 15:40:45 +02:00
..
2022-12-14 21:46:41 +00:00
2023-01-10 15:40:45 +02:00
2022-10-03 15:48:17 +03:00
2022-11-23 18:29:29 +00:00
2022-12-02 21:54:18 +00:00
2022-05-29 23:41:25 +03:00
2021-10-12 17:26:36 +03:00
2020-11-26 00:15:13 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2020-11-26 00:15:13 +03:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2022-03-15 05:34:19 +00:00
2020-11-26 00:14:03 +03:00
2022-07-06 10:02:11 +00:00
2020-11-26 00:15:13 +03:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2022-01-14 13:51:57 +00:00
2022-01-14 13:51:57 +00:00
2020-10-06 17:08:24 +03:00
2022-03-30 06:27:59 +00:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-11-26 19:39:48 +03:00
2021-11-26 19:39:48 +03:00
2021-10-12 17:26:36 +03:00
2021-06-16 21:16:43 +03:00
2021-10-12 17:26:36 +03:00
2022-12-02 21:54:18 +00:00
2022-12-02 21:54:18 +00:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-04-21 17:36:12 +03:00
2021-10-12 17:26:36 +03:00
2021-07-02 17:55:20 +03:00
2021-10-12 17:26:36 +03:00
2021-07-02 17:55:20 +03:00
2021-10-12 17:26:36 +03:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-04-01 20:07:47 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2020-11-26 00:15:13 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00