argotorg / solcore

experimental solidity compiler
13 stars 1 forks source link

Runtime Error When Typechecking `type` Declarations #37

Open d-xo opened 1 month ago

d-xo commented 1 month ago

The following fails to typecheck with: sol-core: src/Solcore/Frontend/TypeInference/TcContract.hs:(91,1)-(113,24): Non-exhaustive patterns in function tcTopDecl:

type memory(t) = word;

IMO actually implementing the full functionality here can wait, but it would be nice if it wouldn't crash the compiler.