diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-01-18 18:52:14 -0500 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-02-04 18:47:02 -0700 |
commit | 79006c03b4aee75cfc52d8cc47c0f45068ee649e (patch) | |
tree | 01e17f6a3fbb2a076b5ed84123f8257ecb603989 /Ladybird/LocationEdit.h | |
parent | d9f632fee7dba5b7b2293e7dfc9df6fc7a42aee3 (diff) | |
download | serenity-79006c03b4aee75cfc52d8cc47c0f45068ee649e.zip |
AK: Check the return type in `IsCallableWithArguments`
Template argument are checked to ensure that the `Out` type is equal or
convertible to the type returned by the invokee.
Compilation now fails on:
`Function<void()> f = []() -> int { return 0; };`
But this is allowed:
`Function<ErrorOr<int>()> f = []() -> int { return 0; };`
Diffstat (limited to 'Ladybird/LocationEdit.h')
0 files changed, 0 insertions, 0 deletions