Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix #2308 -- Struct tuples do not work in FSI / VS FSI * add test * Make new test work on coreclr * Add fsc_basic struct tuple test * Fix typo in name, correct build tests-coreclr-fsharp
- Loading branch information
1 parent
d921725
commit 877aed4
Showing
5 changed files
with
33 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// #Regression | ||
let failures = ref false | ||
let report_failure msg = | ||
printfn "%A" msg | ||
failures := true | ||
|
||
try | ||
let struct (_x,_y) = struct (1,2) | ||
() | ||
with ex -> report_failure (ex.ToString()) | ||
|
||
let _ = | ||
if !failures then | ||
printfn "Test Failed" | ||
exit 1 | ||
else | ||
printfn "Test Passed" | ||
System.IO.File.WriteAllText("test.ok", "ok") | ||
exit 0 | ||
() |
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