Commit 88e246b
Fix 32 - add general check for escaping typars to check phase
This (partly) addresses the class of conditions like dotnet/fsharp#32
which give "undefined type variable" internal errors by adding
an earlier check to check.fs which gives a user-visible error in
this case.
These conditions can in some cases indicate problems with type
inference, though in the case of dotnet/fsharp#32 the check is actually the
best way to detect the escape condition.
fixes dotnet/fsharp#32
closes dotnet/fsharp#442
commit 5d4d818af94242b8f0594450721378762e6fe876
Merge: 3c3708f 0b88185
Author: Don Syme <donsyme@fastmail.fm>
Date: Tue May 19 14:33:37 2015 +0100
merge fsharp4
commit 3c3708fda6d0c16c45f68caed09a05a38c41f746
Author: Don Syme <donsyme@fastmail.fm>
Date: Tue May 19 14:31:06 2015 +0100
normalzie equi-recursive
commit 220131b3c88e149f3e6890da46de31d748233b54
Author: Don Syme <donsyme@fastmail.fm>
Date: Tue May 12 15:32:07 2015 +0100
update tests, change warning to error
commit 53153b8b1d60a50eb91f43b1f78bfda99d3a4a87
Author: Don Syme <donsyme@fastmail.fm>
Date: Tue May 12 15:01:44 2015 +0100
add general check for escaping typars to check phase1 parent c40ec84 commit 88e246b
File tree
6 files changed
+165
-101
lines changed- src/fsharp
- tests/fsharp/typecheck/sigs
6 files changed
+165
-101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
0 commit comments