Skip to content

Commit ed795dd

Browse files
committed
Add an broken example
1 parent aa126a4 commit ed795dd

9 files changed

Lines changed: 244 additions & 0 deletions

File tree

FSharp.Compiler.Service.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
4242
EndProject
4343
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Compiler.Service.Tests2", "tests\FSharp.Compiler.Service.Tests2\FSharp.Compiler.Service.Tests2.fsproj", "{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}"
4444
EndProject
45+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "DiamondTest", "tests\DiamondTest\DiamondTest.fsproj", "{62288B06-B682-4774-A8A5-A21D677A7C70}"
46+
EndProject
4547
Global
4648
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4749
Debug|Any CPU = Debug|Any CPU
@@ -92,6 +94,10 @@ Global
9294
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
9395
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
9496
{60EDC1C4-5B8B-4211-94CD-4CF5F9E0FC8B}.Release|Any CPU.Build.0 = Release|Any CPU
97+
{62288B06-B682-4774-A8A5-A21D677A7C70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
98+
{62288B06-B682-4774-A8A5-A21D677A7C70}.Debug|Any CPU.Build.0 = Debug|Any CPU
99+
{62288B06-B682-4774-A8A5-A21D677A7C70}.Release|Any CPU.ActiveCfg = Release|Any CPU
100+
{62288B06-B682-4774-A8A5-A21D677A7C70}.Release|Any CPU.Build.0 = Release|Any CPU
95101
EndGlobalSection
96102
GlobalSection(SolutionProperties) = preSolution
97103
HideSolutionNode = FALSE

tests/DiamondTest/Broken1/A.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace N.M
2+
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
3+
module internal A =
4+
let x = 3

tests/DiamondTest/Broken1/B.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
namespace N.M.K
2+
module Y = let y = 4

tests/DiamondTest/Broken1/B.fsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
namespace N.M.K
2+
module Y = val y : int

tests/DiamondTest/Broken1/C.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
namespace N.M.K
2+
module Y2 = let y = 4

tests/DiamondTest/Broken1/D.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
namespace N.M.K
2+
module Y3 = let y = 5

tests/DiamondTest/Broken1/E.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace N.M.K
2+
module Y4 =
3+
let y = 6
4+

tests/DiamondTest/DiamondTest.fsproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<Compile Include="D.fsi" />
2222
<Compile Include="D.fs" />
2323
<Compile Include="Program.fs" />
24+
<Compile Include="Broken1\A.fs" />
25+
<Compile Include="Broken1\B.fsi" />
26+
<Compile Include="Broken1\B.fs" />
27+
<Compile Include="Broken1\C.fs" />
28+
<Compile Include="Broken1\D.fs" />
29+
<Compile Include="Broken1\E.fs" />
2430
</ItemGroup>
2531

2632
</Project>

tests/FSharp.Compiler.Service.Tests2/DiamondArgs_broken.txt

Lines changed: 216 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)