Posted on Sep 27, 2011 by
Grumpy Rabbit
What steps will reproduce the problem?
- main _ = println []
What is the expected output? What do you see instead?
Compiler should complain that the type Num a => [String] -> IO () is more constrainted that the annotated one and it should refuse it.
Note that not only main but also all instance methods are annotated, if not by the user himself, then by earlier compiler passes.
Comment #1
Posted on Sep 27, 2011 by Grumpy Rabbitfixed with r178
Status: Verified
Labels:
Type-Defect
Priority-Medium
Usability