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
**ASSUME YOUR CODE IS THE PROBLEM**: When tests fail, ALWAYS assume your implementation is incorrect FIRST. Only after thorough investigation with evidence should you consider other causes like build issues or test infrastructure problems.
75
+
76
+
**UNDERSTAND WHAT YOU'RE TESTING**: Before writing tests, understand exactly what behavior the feature controls. Research the codebase to see how the feature is actually used, not just how you think it should work.
77
+
78
+
**TEST INCREMENTALLY**: After each code change, immediately run the relevant tests to verify the change works as expected. Don't accumulate multiple changes before testing.
79
+
65
80
## 2. Bootstrap (Failure Detection Only)
66
81
Two-phase build. No separate bootstrap command.
67
82
Early proto/tool errors (e.g. "Error building tools") → `BootstrapFailure` (capture key lines). Stop.
* Add `--disableLanguageFeature` CLI switch and MSBuild property to selectively disable specific F# language features on a per-project basis. ([PR #19167](https://github.com/dotnet/fsharp/pull/19167))
Copy file name to clipboardExpand all lines: src/Compiler/FSComp.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1555,6 +1555,7 @@ optsCheckNulls,"Enable nullness declarations and checks (%s by default)"
1555
1555
fSharpBannerVersion,"%s for F# %s"
1556
1556
optsGetLangVersions,"Display the allowed values for language version."
1557
1557
optsSetLangVersion,"Specify language version such as 'latest' or 'preview'."
1558
+
optsDisableLanguageFeature,"Disable a specific language feature by name."
1558
1559
optsSupportedLangVersions,"Supported language versions:"
1559
1560
optsStrictIndentation,"Override indentation rules implied by the language version (%s by default)"
1560
1561
nativeResourceFormatError,"Stream does not begin with a null resource and is not in '.RES' format."
@@ -1801,4 +1802,5 @@ featureAllowLetOrUseBangTypeAnnotationWithoutParens,"Allow let! and use! type an
1801
1802
3878,tcAttributeIsNotValidForUnionCaseWithFields,"This attribute is not valid for use on union cases with fields."
1802
1803
3879,xmlDocNotFirstOnLine,"XML documentation comments should be the first non-whitespace text on a line."
1803
1804
featureReturnFromFinal,"Support for ReturnFromFinal/YieldFromFinal in computation expressions to enable tailcall optimization when available on the builder."
1804
-
3879,optsLangVersionOutOfSupport,"Language version '%s' is out of support. The last .NET SDK supporting it is available at https://dotnet.microsoft.com/en-us/download/dotnet/%s"
1805
+
3880,optsLangVersionOutOfSupport,"Language version '%s' is out of support. The last .NET SDK supporting it is available at https://dotnet.microsoft.com/en-us/download/dotnet/%s"
1806
+
3881,optsUnrecognizedLanguageFeature,"Unrecognized language feature name: '%s'. Use a valid feature name such as 'NameOf' or 'StringInterpolation'."
0 commit comments