projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] Better detection of null operator inside conditional expression. Fixes #57232
[mono.git]
/
mcs
/
tests
/
gtest-409.cs
diff --git
a/mcs/tests/gtest-409.cs
b/mcs/tests/gtest-409.cs
index 45d03a328a7594325bb797c3cfc42f5aca1b1c24..8db59d7e48d63650f38af54129943c59971b9e47 100644
(file)
--- a/
mcs/tests/gtest-409.cs
+++ b/
mcs/tests/gtest-409.cs
@@
-165,6
+165,16
@@
public class ConditionalParsing
var t = (Object)string.Empty;
}
+ void Test_21 ()
+ {
+ var t = (Int32)sbyte.MaxValue;
+ }
+
+ void Test_22 (bool args)
+ {
+ var x = args ?.2f : -.2f;
+ }
+
static void Helper<T> (T arg)
{
}