-
Notifications
You must be signed in to change notification settings - Fork 842
Closed
Labels
BugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Description
After reporting #1392 I figured I'd try to reproduce fsharp/fsharp-compiler-docs#586 again without using FSharp.Compiler.Service. And lo and behold here is how it works (or should I say fails):
Repro steps
test.fsx
#load "other.fsx"
Other.func()and
other.fsx
let func = (fun () ->
printfn "This shouldn't work"
) )
- open
fsi #load test.fsx
Expected behavior
other.fsx(3,3): error FS0010: Unexpected symbol ')' in implementation file
Actual behavior
> #load "test.fsx";;
[Loading C:\PROJ\visualfsharp.issues\loadWithError\other.fsx
Loading C:\PROJ\visualfsharp.issues\loadWithError\test.fsx]
This shouldn't work
namespace FSI_0003
val func : unit -> unit
namespace FSI_0003
Known workarounds
No known workaround
Related information
- F# 4.0 (Microsoft (R) F# Interactive version 14.0.23413.0)
- Windows 10
- VS 2015
fsi.exe test.fsx works ie errors out as expected. That's why I initially assumed it would be an FSharp.Compiler.Service only bug. see fsharp/fsharp-compiler-docs#586
Metadata
Metadata
Assignees
Labels
BugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.