forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests, change warning to error
- Loading branch information
Showing
5 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
neg93.fs(8,19,8,22): typecheck error FS3186: Type inference caused the type variable TError to escape its scope. Consider adding an explicit type parameter declaration or adjusting your code to be less generic. | ||
|
||
neg93.fs(17,17,17,20): typecheck error FS3186: Type inference caused the type variable TError to escape its scope. Consider adding an explicit type parameter declaration or adjusting your code to be less generic. | ||
|
||
neg93.fs(21,10,21,13): typecheck error FS3187: Type inference caused an inference type variable to escape its scope. Consider adding type annotations to make your code less generic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Neg93 | ||
|
||
// See https://github.com/Microsoft/visualfsharp/issues/32 | ||
module Repro1 = | ||
type T1<'TError>(xx:'TError) = | ||
member x.Foo() = T2.Bar(xx) | ||
and T2 = | ||
static member Bar(arg) = 0 | ||
|
||
//let rec f1<'TError>(xx:'TError) = f2(xx) | ||
//and f2(arg) = 0 | ||
|
||
module Repro2 = | ||
type T1<'TError>(thisActuallyHasToBeHere:'TError) = | ||
member x.Foo() = T2.Bar(failwith "!" : option<'TError>) | ||
and T2 = | ||
static member Bar(arg:option<_>) = 0 | ||
|
||
module Repro3 = | ||
|
||
let rec foo< > c = bar c | ||
and bar c = 0 | ||
|