Skip to content

feat(Nullable): Enable F# nullable reference types on Argu.fsproj#305

Open
dimension-zero wants to merge 1 commit into
fsprojects:masterfrom
dimension-zero:pr/17-nullable-ref-annotations
Open

feat(Nullable): Enable F# nullable reference types on Argu.fsproj#305
dimension-zero wants to merge 1 commit into
fsprojects:masterfrom
dimension-zero:pr/17-nullable-ref-annotations

Conversation

@dimension-zero
Copy link
Copy Markdown
Contributor

feat(Nullable): Enable F# nullable reference types on Argu.fsproj

  • Argu.fsproj: enable.
  • Types.fs: ArguException.ctor inner-exception parameter is now
    'Exception | null', accurately reflecting that callers (including
    the convenience single-arg constructor on line 45) may pass null.
    The visible signature already accepted null at runtime; this just
    annotates it.

Compile-time hints only. No runtime behaviour change. All 112 tests
pass unchanged.


* Argu.fsproj: <Nullable>enable</Nullable>.
* Types.fs: ArguException.ctor inner-exception parameter is now
  'Exception | null', accurately reflecting that callers (including
  the convenience single-arg constructor on line 45) may pass null.
  The visible signature already accepted null at runtime; this just
  annotates it.

Compile-time hints only. No runtime behaviour change. All 112 tests
pass unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant