Make the occurrence analyser deal correctly with RULES for imported Ids
authorsimonpj@microsoft.com <unknown>
Thu, 7 Oct 2010 09:41:00 +0000 (09:41 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 7 Oct 2010 09:41:00 +0000 (09:41 +0000)
This patch fixes a long-standing lurking bug, but it surfaced when I
was adding specialisation for imported Ids.

See Note [ImpRuleUsage], which explains the issue.   The solution
seems more complicated than the problem really deserves, but I
could not think of a simpler way, so I just bit the bullet and
wrote the code.  Improvements welcome.


No differences found