Skip to content

Commit ad65c02

Browse files
committed
add test for fsharp/fsharp#483
1 parent 7e0df4b commit ad65c02

File tree

1 file changed

+12
-0
lines changed
  • tests/fsharp/core/fsiAndModifiers

1 file changed

+12
-0
lines changed

tests/fsharp/core/fsiAndModifiers/test.fsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ module TestPack4 =
8686
printfn "got %A" got
8787
if got <> expected then fail (sprintf "TestPack4: got %A, expected %A" got expected)
8888

89+
// See https://github.com/fsharp/fsharp/issues/483
90+
module TestFsiLoadOfNonExistentAssembly =
91+
let test() =
92+
try
93+
let log4netType = System.Type.GetType("ThisTypeDoes.Not.Exist, thisAssemblyDoesNotExist")
94+
let exists = log4netType <> null
95+
if exists then fail (sprintf "type existed!")
96+
do printfn "%A" exists
97+
with e ->
98+
fail (sprintf "exception unexpected: %s" e.Message)
99+
100+
do test()
89101

90102
if errors.IsEmpty then
91103
System.IO.File.WriteAllText("test.ok", "")

0 commit comments

Comments
 (0)