argotorg / solcore

experimental solidity compiler
13 stars 1 forks source link

Error free std.sol #18

Closed d-xo closed 1 month ago

d-xo commented 1 month ago

Tweaks the compiler and std.sol so that executing cabal run sol-core -- -f std/std.sol no longer produces any errors.

Includes the following changes:

d-xo commented 1 month ago

I merged main and resolved conflicts but now I get type errors :(

Cannot match types:
a with n

 - in:function fst (p : Pair(a, b)) -> a {
   match (p) {
   | Pair(a, _) =>
      return a
   }
}