Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
internalerror with MakeValueAssign fixed?
  • Loading branch information
T-Gro committed Jun 16, 2023
commit 83cc0e4f5a958da008706f2448fe3ee3036df145
10 changes: 10 additions & 0 deletions tests/FSharp.Compiler.ComponentTests/Language/RegressionTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ type TestItemSeq =
|> compile
|> withErrorCodes [39]
|> ignore


[<Fact>]
let ``Member val regression - not allowed without primary constructor`` () =
Fs """module Test
type Bad3 =
member val X = 1 + 1 """
|> typecheck
|> shouldFail
|> withDiagnostics []