From a96219ef9b1104df14a5df5affebb1cd672423b6 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Fri, 11 Feb 2022 15:16:33 +0100
Subject: [PATCH] WIP: Implementation of IrType should be Ok

---
 src/Lib/Script/Ast/IrType.cc | 6 ++++++
 src/Lib/Script/Ast/IrType.hh | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/Lib/Script/Ast/IrType.cc b/src/Lib/Script/Ast/IrType.cc
index 23e8b6df..9b9b0312 100644
--- a/src/Lib/Script/Ast/IrType.cc
+++ b/src/Lib/Script/Ast/IrType.cc
@@ -120,11 +120,17 @@ IrTAss::parse(std::vector<Token> *)
 
 namespace Vivy::Script
 {
+IrTOption::IrTOption(IrOption *opt) noexcept
+    : selfInnerOption(opt)
+{
+}
+
 IrType::Type
 IrTOption::type() const noexcept
 {
     return Type::Option;
 }
+
 const IrOption *
 IrTOption::innerType() const noexcept
 {
diff --git a/src/Lib/Script/Ast/IrType.hh b/src/Lib/Script/Ast/IrType.hh
index 24497e12..e6f9ad3e 100644
--- a/src/Lib/Script/Ast/IrType.hh
+++ b/src/Lib/Script/Ast/IrType.hh
@@ -52,6 +52,8 @@ class IrTOption final : public IrType {
 
     IrOption *selfInnerOption = nullptr;
 
+    IrTOption(IrOption *) noexcept;
+
 public:
     Type type() const noexcept override;
     const IrOption *innerType() const noexcept;
-- 
GitLab