Skip to content

Commit 852392b

Browse files
CopilotT-Gro
andcommitted
Fix test expectations to match actual compiler behavior for duplicate method errors
Co-authored-by: T-Gro <[email protected]>
1 parent 51a01bc commit 852392b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ 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'.")
260259
(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'.")
261260
]
262261

@@ -278,6 +277,5 @@ module MemberDefinitions_OverloadingMembers =
278277
|> compile
279278
|> shouldFail
280279
|> 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.")
282280
(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.")
283281
]

0 commit comments

Comments
 (0)