smlnj / legacy

This project is the old version of Standard ML of New Jersey that continues to support older systems (e.g., 32-bit machines).
BSD 3-Clause "New" or "Revised" License
29 stars 9 forks source link

Type variable escapes its scope in type inference #311

Open kcrary opened 5 months ago

kcrary commented 5 months ago

Version

110.99.1

Operating System

OS Version

No response

Processor

System Component

Core system

Severity

Major

Description

A bug in type inference seems to allow type variables to escape their scope.

Transcript

Expected Behavior

foo should produce a type error

Steps to Reproduce

as above

Additional Information

No response

Email address

crary@cs.cmu.edu