Le samedi 4 août 2018 16:38:00 UTC+2, gmhwxi a écrit : > > 'var h:t' means that the size of 'h' is that of the size of 't'. > It does NOT mean that only a value of the type 't' can be > stored in 'h'. >
To check it: typedef t = @{a=int} typedef u = @{b=int} var a:t = @{a=0} var b:u = a // Type‑checks! Fails if `val` instead of `var`. -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-users+unsubscr...@googlegroups.com. To post to this group, send email to ats-lang-users@googlegroups.com. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/98cd41fc-b975-4977-a149-5bd5f78bd843%40googlegroups.com.