Skip to content

Commit da6ba12

Browse files
CopilotT-Gro
andcommitted
Restore expecting both duplicate method errors as reported by compiler
Co-authored-by: T-Gro <[email protected]>
1 parent 03fa74b commit da6ba12

File tree

1 file changed

+2
-0
lines changed
  • tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/OverloadingMembers

1 file changed

+2
-0
lines changed

tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/OverloadingMembers/OverloadingMembers.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ module MemberDefinitions_OverloadingMembers =
256256
|> compile
257257
|> shouldFail
258258
|> withDiagnostics [
259+
(Error 438, Line 6, Col 19, Line 6, Col 20, "Duplicate method. The method 'M' has the same name and signature as another method in type 'Q'.")
259260
(Error 438, Line 7, Col 19, Line 7, Col 20, "Duplicate method. The method 'M' has the same name and signature as another method in type 'Q'.")
260261
]
261262

@@ -277,5 +278,6 @@ module MemberDefinitions_OverloadingMembers =
277278
|> compile
278279
|> shouldFail
279280
|> withDiagnostics [
281+
(Error 438, Line 8, Col 19, Line 8, Col 20, "Duplicate method. The method 'H' has the same name and signature as another method in type 'S' once tuples, functions, units of measure and/or provided types are erased.")
280282
(Error 438, Line 9, Col 19, Line 9, Col 20, "Duplicate method. The method 'H' has the same name and signature as another method in type 'S' once tuples, functions, units of measure and/or provided types are erased.")
281283
]

0 commit comments

Comments
 (0)