}
std::unique_ptr<Stmt>
-Builder::let (std::unique_ptr<Pattern> pattern, std::unique_ptr<Type> type,
- std::unique_ptr<Expr> init) const
+Builder::let (std::unique_ptr<Pattern> &&pattern, std::unique_ptr<Type> &&type,
+ std::unique_ptr<Expr> &&init) const
{
return std::unique_ptr<Stmt> (new LetStmt (std::move (pattern),
std::move (init), std::move (type),
/* Create a let binding with an optional type and initializer (`let <name> :
* <type> = <init>`) */
- std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> pattern,
- std::unique_ptr<Type> type = nullptr,
- std::unique_ptr<Expr> init = nullptr) const;
+ std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> &&pattern,
+ std::unique_ptr<Type> &&type = nullptr,
+ std::unique_ptr<Expr> &&init = nullptr) const;
/**
* Create a call expression to a function, struct or enum variant, given its