mirror of
https://github.com/RGBCube/serenity
synced 2025-10-24 21:22:33 +00:00
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; };`
|
||
|---|---|---|
| .. | ||
| Parser.cpp | ||
| Parser.h | ||