diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution02_2.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution02_2.fsx new file mode 100644 index 00000000000..f3d918aa570 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution02_2.fsx @@ -0,0 +1,6 @@ +#r "./lib.dll" + +module Foo = + let Y = 22 + do + printfn "%O" (Lib.X()) \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution03_2.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution03_2.fsx new file mode 100644 index 00000000000..578317e8545 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution03_2.fsx @@ -0,0 +1,6 @@ +#r "lib.dll" + +module Foo = + let Y = 22 + do + printfn "%O" (Lib.X()) \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution05_2.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution05_2.fsx new file mode 100644 index 00000000000..578317e8545 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/RelativeHashRResolution05_2.fsx @@ -0,0 +1,6 @@ +#r "lib.dll" + +module Foo = + let Y = 22 + do + printfn "%O" (Lib.X()) \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution01_2.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution01_2.fsx new file mode 100644 index 00000000000..e2c6124fb05 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution01_2.fsx @@ -0,0 +1,6 @@ +#r "../lib.dll" + +module Foo = + let Y = 22 + do + printfn "%O" (Lib.X()) \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_1.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_1.fsx new file mode 100644 index 00000000000..54284152a25 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_1.fsx @@ -0,0 +1,6 @@ +#load "RelativeHashRResolution04_2.fsx" + +printfn "%O" (Lib.X()) +printfn "%O" RelativeHashRResolution04_2.Foo.Y + +#q ;; \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_2.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_2.fsx new file mode 100644 index 00000000000..e2c6124fb05 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution04_2.fsx @@ -0,0 +1,6 @@ +#r "../lib.dll" + +module Foo = + let Y = 22 + do + printfn "%O" (Lib.X()) \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution05_1.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution05_1.fsx new file mode 100644 index 00000000000..9300a359b3b --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/aaa/bbb/RelativeHashRResolution05_1.fsx @@ -0,0 +1,6 @@ +#load "..\RelativeHashRResolution05_2.fsx" + +printfn "%O" (Lib.X()) +printfn "%O" RelativeHashRResolution05_2.Foo.Y + +#q ;; \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution01_1.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution01_1.fsx new file mode 100644 index 00000000000..d843f7bebb5 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution01_1.fsx @@ -0,0 +1,6 @@ +#load "../aaa/bbb/RelativeHashRResolution01_2.fsx" + +printfn "%O" (Lib.X()) +printfn "%O" RelativeHashRResolution01_2.Foo.Y + +#q ;; \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution02_1.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution02_1.fsx new file mode 100644 index 00000000000..0f254d61dc0 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution02_1.fsx @@ -0,0 +1,6 @@ +#load "../aaa/RelativeHashRResolution02_2.fsx" + +printfn "%O" (Lib.X()) +printfn "%O" RelativeHashRResolution02_2.Foo.Y + +#q ;; \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution03_1.fsx b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution03_1.fsx new file mode 100644 index 00000000000..cf0c1fb7bfe --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/ccc/RelativeHashRResolution03_1.fsx @@ -0,0 +1,6 @@ +#load "../aaa/RelativeHashRResolution03_2.fsx" + +printfn "%O" (Lib.X()) +printfn "%O" RelativeHashRResolution03_2.Foo.Y + +#q ;; \ No newline at end of file diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/env.lst b/tests/fsharpqa/Source/InteractiveSession/Misc/env.lst index 52b422a7969..18ffc17171a 100644 --- a/tests/fsharpqa/Source/InteractiveSession/Misc/env.lst +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/env.lst @@ -99,3 +99,10 @@ NoMT SOURCE=E_NoNoFrameworkWithFSCore.fs COMPILE_ONLY=1 FSIMODE=PIPE SCFLAGS="- SOURCE="ScriptTest\\LoadScriptResolution01.fsx" SCFLAGS="--nologo" # LoadScriptResolution01.fsx - fsc SOURCE="ScriptTest\\LoadScriptResolution01.fsx" COMPILE_ONLY=1 FSIMODE=FEED SCFLAGS="--nologo" # LoadScriptResolution01.fsx - fsi + +# relative paths used in #r references + SOURCE=ccc\\RelativeHashRResolution01_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution01_1.fsx + SOURCE=ccc\\RelativeHashRResolution02_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution02_1.fsx + SOURCE=ccc\\RelativeHashRResolution03_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution03_1.fsx + SOURCE=aaa\\bbb\\RelativeHashRResolution04_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution04_1.fsx + SOURCE=aaa\\bbb\\RelativeHashRResolution05_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution05_1.fsx diff --git a/tests/fsharpqa/Source/InteractiveSession/Misc/lib.fs b/tests/fsharpqa/Source/InteractiveSession/Misc/lib.fs new file mode 100644 index 00000000000..b73bc61fb99 --- /dev/null +++ b/tests/fsharpqa/Source/InteractiveSession/Misc/lib.fs @@ -0,0 +1,2 @@ +module Lib +let X () = 42 \ No newline at end of file