]> git.lizzy.rs Git - rust.git/commit
Merge #327
authorbors[bot] <bors[bot]@users.noreply.github.com>
Mon, 24 Dec 2018 14:40:11 +0000 (14:40 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Mon, 24 Dec 2018 14:40:11 +0000 (14:40 +0000)
commit67e768466ff2e2611eead0f30b2e9c4083c80c20
tree8984028019837c91131fc30f60eecf8c2a457368
parentabe09eb5edfe8f4c58baa16140acbd414635836f
parent4befde1eee5b1e2b7ddc9bf764b77f82b792c318
Merge #327

327: Beginnings of type inference r=flodiebold a=flodiebold

I was a bit bored, so I thought I'd try to start implementing the type system and see how far I come :wink:  This is obviously still extremely WIP, only very basic stuff working, but I thought I'd post this now to get some feedback as to whether this approach makes sense at all.

There's no user-visible effect yet, but the type inference has tests similar to the ones for the parser. My next step will probably be to implement struct types, after which this could probably be used to complete fields.

I realize this may all get thrown away when/if the compiler query system gets usable, but I feel like there are lots of IDE features that could be implemented with somewhat working type inference in the meantime :smile:

Co-authored-by: Florian Diebold <flodiebold@gmail.com>