summaryrefslogtreecommitdiff
path: root/Userland/Utilities/markdown-check.cpp
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-01-18 18:52:14 -0500
committerAndrew Kaster <andrewdkaster@gmail.com>2023-02-04 18:47:02 -0700
commit79006c03b4aee75cfc52d8cc47c0f45068ee649e (patch)
tree01e17f6a3fbb2a076b5ed84123f8257ecb603989 /Userland/Utilities/markdown-check.cpp
parentd9f632fee7dba5b7b2293e7dfc9df6fc7a42aee3 (diff)
downloadserenity-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 'Userland/Utilities/markdown-check.cpp')
0 files changed, 0 insertions, 0 deletions