mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 09:38:01 +02:00
Improved constraint check in CastToValue
This commit is contained in:
parent
51eaa6276f
commit
aa58c864f7
2 changed files with 20 additions and 21 deletions
|
@ -1,3 +1,5 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace Tests
|
||||
|
@ -92,6 +94,9 @@ namespace Tests
|
|||
|
||||
Test.Assert(DoAdd(iNull, iNull) == 200);
|
||||
Test.Assert(DoAdd(iNull, null) == null);
|
||||
|
||||
String str = "Abc";
|
||||
StringView? svn = str;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue