Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old error bsl in component tests to avoid confusion #17653

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: .+</Expects>

#light
exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Actual message is: error FS0191: Valid values are between 0 and 65535, inclusive.
// Parameter Name: codepage
// but is is localized!
//<Expects id="FS1000" status="error">Problem with codepage '65536': Valid values are between 0 and 65535, inclusive</Expects>



exit 1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// #NoMT #CompilerOptions #Determinism
//<Expects id="FS2027" status="error">--pathmap can only be used with portable PDBs \(--debug:portable or --debug:embedded\)</Expects>

exit 0
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// #NoMT #CompilerOptions #Determinism
//<Expects id="FS2028" status="error">Invalid path map\. Mappings must be comma separated and of the format 'path=sourcePath'</Expects>

exit 0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #NoMT #CompilerOptions #RequiresENU
// Test that without [--flaterrors] flag multi-line errors are emitted in a regular way, i.e. spanned to more that one line
//<Expects id="FS0001" status="error" span="(8,11)">This expression was expected to have type</Expects>

//<Expects status="success"> ''a list'</Expects>
//<Expects status="success">but here has type</Expects>
//<Expects status="success"> 'seq<'b>'</Expects>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
// Test that using [--flaterrors] does not make an impact on regular single-line error messages
//<Expects id="FS0039" status="error">The value or constructor 'b' is not defined</Expects>


let a = b
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--PLATFORM'</Expects>

printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--PlatForm'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'ITANIUM', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'ANYCPU', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'X86', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'X64', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'IA64', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'i386', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'AMD64', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'PPC', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--platform-'</Expects>


printfn "Finished"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--PLATFORM\+'</Expects>


printfn "Finished"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '---platform'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS1064" status="error">Unrecognized platform 'ARM', valid values are 'x86', 'x64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>


printfn "Finished"

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS3150" status="error">The 'anycpu32bitpreferred' platform can only be used with EXE targets\. You must use 'anycpu' instead\.</Expects>

module M
printfn "Finished"

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open FSharp.Test.Compiler
module platform =

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS3150" status="error">The 'anycpu32bitpreferred' platform can only be used with EXE targets\. You must use 'anycpu' instead\.</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_16.fs"|])>]
let ``platform - error_16_fs - --target:library --platform:anycpu32bitpreferred`` compilation =
compilation
Expand All @@ -22,7 +22,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS0243" status="error">Unrecognized option: '--PLATFORM'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_01.fs"|])>]
let ``platform - error_01_fs - --PLATFORM:anycpu`` compilation =
compilation
Expand All @@ -35,7 +35,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS0243" status="error">Unrecognized option: '--PlatForm'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_02.fs"|])>]
let ``platform - error_02_fs - --PlatForm:anycpu`` compilation =
compilation
Expand All @@ -48,7 +48,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'ITANIUM', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_03.fs"|])>]
let ``platform - error_03_fs - --platform:ITANIUM`` compilation =
compilation
Expand All @@ -61,7 +61,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'ANYCPU', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_04.fs"|])>]
let ``platform - error_04_fs - --platform:ANYCPU`` compilation =
compilation
Expand All @@ -74,7 +74,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'X86', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_05.fs"|])>]
let ``platform - error_05_fs - --platform:X86`` compilation =
compilation
Expand All @@ -87,7 +87,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'X64', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_06.fs"|])>]
let ``platform - error_06_fs - --platform:X64`` compilation =
compilation
Expand All @@ -100,7 +100,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'IA64', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_07.fs"|])>]
let ``platform - error_07_fs - --platform:IA64`` compilation =
compilation
Expand All @@ -113,7 +113,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'i386', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_08.fs"|])>]
let ``platform - error_08_fs - --platform:i386`` compilation =
compilation
Expand All @@ -126,7 +126,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'AMD64', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_09.fs"|])>]
let ``platform - error_09_fs - --platform:AMD64`` compilation =
compilation
Expand All @@ -139,7 +139,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'PPC', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_10.fs"|])>]
let ``platform - error_10_fs - --platform:PPC`` compilation =
compilation
Expand All @@ -152,7 +152,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS1064" status="error">Unrecognized platform 'ARM', valid values are 'x86', 'x64', 'Arm', 'Arm64', 'Itanium', 'anycpu32bitpreferred', and 'anycpu'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_15.fs"|])>]
let ``platform - error_15_fs - --platform:ARM`` compilation =
compilation
Expand All @@ -165,7 +165,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS0243" status="error">Unrecognized option: '--platform-'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_11.fs"|])>]
let ``platform - error_11_fs - --platform-:anycpu`` compilation =
compilation
Expand All @@ -178,7 +178,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS0243" status="error">Unrecognized option: '--PLATFORM\+'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_12.fs"|])>]
let ``platform - error_12_fs - --PLATFORM+:anycpu`` compilation =
compilation
Expand All @@ -191,7 +191,7 @@ module platform =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/platform)
//<Expects id="FS0243" status="error">Unrecognized option: '---platform'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_13.fs"|])>]
let ``platform - error_13_fs - ---platform:anycpu`` compilation =
compilation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--Times'</Expects>

#light
printfn "Finished"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--times-'</Expects>

#light
printfn "Finished"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #Regression #NoMT #CompilerOptions
//<Expects id="FS0243" status="error">Unrecognized option: '--times\+'</Expects>

#light
printfn "Finished"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ open System.IO
module times =

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/times)
//<Expects id="FS0243" status="error">Unrecognized option: '--Times'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_01.fs"|])>]
let ``times - error_01_fs - --Times`` compilation =
compilation
Expand All @@ -24,7 +24,7 @@ module times =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/times)
//<Expects id="FS0243" status="error">Unrecognized option: '--times-'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_02.fs"|])>]
let ``times - error_02_fs - --times-`` compilation =
compilation
Expand All @@ -37,7 +37,7 @@ module times =
|> ignore

// This test was automatically generated (moved from FSharpQA suite - CompilerOptions/fsc/times)
//<Expects id="FS0243" status="error">Unrecognized option: '--times\+'</Expects>

[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"error_03.fs"|])>]
let ``times - error_03_fs - --times+`` compilation =
compilation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #NoMT #CompilerOptions
// Regression test for FSHARP1.0:4867
// nowarn has no effect if "Warning level = 4" and "Warnings as errors"
//<Expects id="FS0040" span="(6,48)" status="error">This and other recursive references to the object\(s\) being defined will be checked for initialization-soundness at runtime through the use of a delayed reference\. This is because you are defining one or more recursive objects, rather than recursive functions\. This warning may be suppressed by using '#nowarn "40"' or '--nowarn:40'\.$</Expects>


let rec f = new System.EventHandler(fun _ _ -> f.Invoke(null,null))
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// #Regression #NoMT #CompilerOptions
// Regression test for FSHARP1.0:4867
// nowarn has no effect if "Warning level = 4" and "Warnings as errors"
//<Expects id="FS0040" span="(7,48)" status="error">This and other recursive references to the object\(s\) being defined will be checked for initialization-soundness at runtime through the use of a delayed reference\. This is because you are defining one or more recursive objects, rather than recursive functions\. This warning may be suppressed by using '#nowarn "40"' or '--nowarn:40'</Expects>

#nowarn "21"

let rec f = new System.EventHandler(fun _ _ -> f.Invoke(null,null))
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// #Regression #NoMT #CompilerOptions

//<Expects id="FS1050" status="error">Invalid warning level '6'</Expects>

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// #Regression #Conformance #DeclarationElements #Accessibility
//<Expects id="FS0410" status="error" span="(5,19)">The type 'A' is less accessible than the value, member or type 'x' it is used in</Expects>


type internal A = { x : int }
type public B = { x : A[] }
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #Conformance #DeclarationElements #Accessibility
// Let bindings in classes are always private
//<Expects id="FS0646" span="(7,13-7,16)" status="error">Multiple visibility attributes have been specified for this identifier\. 'let' bindings in classes are always private, as are any 'let' bindings inside expressions</Expects>

type internal A() = class end

type public B() =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #Conformance #DeclarationElements #Accessibility
// Verify error associated with more accessible base class than super class
//<Expects id="FS0410" status="error" span="(10,6)">The type 'C1' is less accessible than the value, member or type 'C2' it is used in</Expects>


// Class inheritance:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// #Regression #Conformance #DeclarationElements #Accessibility
// Verify error when inheriting from less accessible base class

//<Expects id="FS0410" status="error" span="(12,6)">The type 'I2' is less accessible than the value, member or type 'D' it is used in</Expects>

//<Expects id="FS0410" status="error" span="(18,6)">The type 'I3' is less accessible than the value, member or type 'IAmAnotherInterface' it is used in</Expects>



// Delegate signature:
type private I2 =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #Conformance #DeclarationElements #Accessibility
// Verify error when using a private implicit constructor
//<Expects id="FS0509" span="(24,10-24,18)" status="error">Method or object constructor 'C' not found</Expects>


type A public (x : int) =
member this.Value = x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #Regression #Conformance #DeclarationElements #Accessibility
// Regression test for FSharp1.0:4227 - protected access checks are not correctly implemented
//<Expects id="FS0629" span="(11,24-11,41)" status="error">Method 'MemberwiseClone' is not accessible from this code location</Expects>


type C1() as this =
inherit System.MarshalByRefObject()
Expand Down
Loading
Loading