From cac568178d03285dbeebaee77d3211f8cc5a640a Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 21 Apr 2021 23:29:00 +0200 Subject: [PATCH] Moved field `width` from Integer to Number --- source/tlang/compiler/symbols/typing.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tlang/compiler/symbols/typing.d b/source/tlang/compiler/symbols/typing.d index 002d18a..2cd83e2 100644 --- a/source/tlang/compiler/symbols/typing.d +++ b/source/tlang/compiler/symbols/typing.d @@ -31,6 +31,9 @@ public class Type : Entity public class Number : Type { + /* Number of bytes (1,2,4,8) */ + private ubyte width; + this(string name) { super(name); @@ -39,9 +42,6 @@ public class Number : Type public class Integer : Number { - /* Number of bytes (1,2,4,8) */ - private ubyte width; - this(string name) { super(name);