Funicular-Switch icon indicating copy to clipboard operation
Funicular-Switch copied to clipboard

Implicit operator from any type to option can cause unsafe option creation.

Open Tyrrx opened this issue 9 months ago • 0 comments

Example following:

string? s1 = null;
Option<string> t1 = s1;
string s2 = null;
Option<string> t2 = s2;

It causes warning if nullable is enabled but otherwise it does not produce an error.

Tyrrx avatar Apr 30 '25 11:04 Tyrrx