Closed evincarofautumn closed 11 years ago
Quoth @strager:
The following typechecks but fails during interpretation:
def ; ([a] a -> [a]): prepend ([Char])[] 'a'; 'b';
Type of prepend:
def prepend (a [a] -> [a])
Error:
kitten: user error (Pattern match failure in do expression at lib/Kitten/Interpret.hs:90:5-14)
Currently working on reinstating type inference; this issue is still relevant but its solution will look very different.
Currently this is not done, so programs can typecheck that will fail at runtime.