You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/release-notes/.FSharp.Compiler.Service/9.0.200.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
* Ensure `frameworkTcImportsCache` mutations are thread-safe. ([PR #17795](https://github.com/dotnet/fsharp/pull/17795))
7
7
* Fix concurrency issue in `ILPreTypeDefImpl` ([PR #17812](https://github.com/dotnet/fsharp/pull/17812))
8
8
* Fix nullness inference for member val and other OO scenarios ([PR #17845](https://github.com/dotnet/fsharp/pull/17845))
9
+
* Fix internal error when analyzing incomplete inherit member ([PR #17905](https://github.com/dotnet/fsharp/pull/17905))
10
+
9
11
10
12
### Added
11
13
* Deprecate places where `seq` can be omitted. ([Language suggestion #1033](https://github.com/fsharp/fslang-suggestions/issues/1033), [PR #17772](https://github.com/dotnet/fsharp/pull/17772))
Copy file name to clipboardExpand all lines: tests/FSharp.Compiler.ComponentTests/ErrorMessages/ClassesTests.fs
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -831,6 +831,18 @@ type Class() =
831
831
(Error 961, Line 5, Col 5, Line 5, Col 12,"This 'inherit' declaration specifies the inherited type but no arguments. Consider supplying arguments, e.g. 'inherit BaseType(args)'.")
832
832
(Error 946, Line 5, Col 13, Line 5, Col 15,"Cannot inherit from interface type. Use interface ... with instead.")
833
833
]
834
+
835
+
[<Fact>]
836
+
let``This 'inherit' declaration specifies the inherited type but no arguments. Type name cannot be empty.`` ()=
837
+
Fsx """
838
+
type Class() =
839
+
inherit
840
+
"""
841
+
|> typecheck
842
+
|> shouldFail
843
+
|> withDiagnostics [
844
+
(Error 3159, Line 3, Col 5, Line 3, Col 12,"Type name cannot be empty.")
845
+
]
834
846
835
847
[<Fact>]
836
848
let``The types System.ValueType,System.Enum,System.Delegate,System.MulticastDelegate and System.Array cannot be used as super types in an object expression or class.`` ()=
0 commit comments