summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tnslc/test.tnsl12
-rw-r--r--tnslc/tnslc.tnsl4
2 files changed, 13 insertions, 3 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index b274dfd..7e5112a 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -6,8 +6,8 @@ struct ARRAY_TEST {
{}PTR_TEST dat
}
-enum ENUM_TEST [{}int] {
- A = {2, 3, 4, 5, 623459},
+enum ENUM_TEST [{}uint8] {
+ A = "nizsdd",
B = {1, 2}
}
@@ -16,6 +16,14 @@ enum EN_ARR [PTR_TEST] {
B = {3, 4}
}
+struct A {
+ B nxta
+}
+
+struct B {
+ ~A dat
+}
+
/; main [int]
return EN_ARR.A.dat
;/ \ No newline at end of file
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index 8bad758..aea8bca 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -1084,7 +1084,9 @@
;; else if (p >== 0)
;s = s + p
;; else
- ;~Type tp = m`.find_type(t`.members{i}.data_type.name)
+ ;tnsl.io.println("STRUCT!!!!!!")
+ ;{}{}uint8 artifact = { t`.members{i}.data_type.name }
+ ;~Type tp = m`.find_type(artifact)
/; if (tp`.s == 0)
;size_struct(tp, m)
;/