From 9fa97d76875f8a2b5e0c4b46dc3bf5980aa99d8a Mon Sep 17 00:00:00 2001 From: nojaf Date: Mon, 13 Nov 2023 08:45:38 +0100 Subject: [PATCH] Update tests --- .../MethodsAndProperties/MethodsAndProperties.fs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/MethodsAndProperties/MethodsAndProperties.fs b/tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/MethodsAndProperties/MethodsAndProperties.fs index d4e8d302dd9b..a71f63cbfb94 100644 --- a/tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/MethodsAndProperties/MethodsAndProperties.fs +++ b/tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/MethodsAndProperties/MethodsAndProperties.fs @@ -592,7 +592,7 @@ type MyIndexerClass() = |> withLangVersionPreview |> typecheck |> shouldFail - |> withSingleDiagnostic (Warning 3581, Line 4, Col 14, Line 4, Col 17, "An indexed property's getter and setter must have the same type. Property 'Indexer1' has getter of type 'string' but setter of type 'float'.") + |> withSingleDiagnostic (Warning 3581, Line 3, Col 14, Line 3, Col 22, "An indexed property's getter and setter must have the same type. Property 'Indexer1' has getter of type 'string' but setter of type 'float'.") [] let ``Indexed2PropertiesSameType_fs preview``() = @@ -605,7 +605,7 @@ type MyIndexerClass() = |> withLangVersionPreview |> typecheck |> shouldFail - |> withSingleDiagnostic (Warning 3581, Line 4, Col 14, Line 4, Col 17, "An indexed property's getter and setter must have the same type. Property 'Indexer2' has getter of type 'int' but setter of type 'float'.") + |> withSingleDiagnostic (Warning 3581, Line 3, Col 14, Line 3, Col 22, "An indexed property's getter and setter must have the same type. Property 'Indexer2' has getter of type 'int' but setter of type 'float'.") [] let ``Indexed3PropertiesSameType_fs preview``() = @@ -632,7 +632,7 @@ type MyIndexerClass() = |> withLangVersionPreview |> typecheck |> shouldFail - |> withSingleDiagnostic (Warning 3581, Line 4, Col 14, Line 4, Col 17, "An indexed property's getter and setter must have the same type. Property 'Indexer4' has getter of type 'float' but setter of type 'string'.") + |> withSingleDiagnostic (Warning 3581, Line 3, Col 14, Line 3, Col 22, "An indexed property's getter and setter must have the same type. Property 'Indexer4' has getter of type 'float' but setter of type 'string'.") [] let ``Indexed5PropertiesSameType_fs preview``() = @@ -645,7 +645,7 @@ type MyIndexerClass() = |> withLangVersionPreview |> typecheck |> shouldFail - |> withSingleDiagnostic (Warning 3581, Line 4, Col 14, Line 4, Col 17, "An indexed property's getter and setter must have the same type. Property 'Indexer5' has getter of type 'float' but setter of type 'obj'.") + |> withSingleDiagnostic (Warning 3581, Line 3, Col 14, Line 3, Col 22, "An indexed property's getter and setter must have the same type. Property 'Indexer5' has getter of type 'float' but setter of type 'obj'.") [] let ``GenericIndexerPropertiesSameType_fs preview``() = @@ -667,4 +667,4 @@ type GenericIndexer<'indexerArgs,'indexerOutput,'indexerInput>() = |> withLangVersionPreview |> typecheck |> shouldFail - |> withSingleDiagnostic (Warning 3581, Line 9, Col 27, Line 9, Col 30, "An indexed property's getter and setter must have the same type. Property 'Item' has getter of type ''indexerOutput' but setter of type ''indexerInput'.") \ No newline at end of file + |> withSingleDiagnostic (Warning 3581, Line 9, Col 17, Line 9, Col 21, "An indexed property's getter and setter must have the same type. Property 'Item' has getter of type ''indexerOutput' but setter of type ''indexerInput'.") \ No newline at end of file