Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

basic indexing type checking #222

Closed am-cid closed 6 months ago

am-cid commented 6 months ago
a-chan[] = {1,{2},3,4}~
b-chan = a[1]~
c-chan = a[4]~
d-chan = a[0][0][0][0]~

current

array type checking just assumes that whatever is being returned from an indexed id that is array type will be its unit type equivalent. so a[1] would be expected to return chan even though in reality, its chan[]

proposed change:

caveats

am-cid commented 6 months ago

not going to continue with this