Skip to content
← Back

src/ir/values/load/super.ghul

1
namespace IR.Values.Load is
2
use Semantic.Types.Type;
3
use SymbolBase = Semantic.Symbols.Symbol;
4
5
class SUPER: REFERENCE_SELF is
6
is_super: bool => true;
7
8
init(`self: SymbolBase) is
9
init(`self, null);
10
si
11
12
init(`self: SymbolBase, type: Type) is
13
super.init(`self, type);
14
si
15
16
to_string() -> string =>
17
"super:[{type}]";
18
si
19
si