projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git]
/
mcs
/
tests
/
dtest-006.cs
diff --git
a/mcs/tests/dtest-006.cs
b/mcs/tests/dtest-006.cs
index 599c3a511fa659686839a962a77c942210d358c6..4d80081df540c48b18161d2157352a64afedc54c 100644
(file)
--- a/
mcs/tests/dtest-006.cs
+++ b/
mcs/tests/dtest-006.cs
@@
-1104,6
+1104,14
@@
class Tester
Assert (d2 >= null, false, "#3a");
}
+ void IsTest ()
+ {
+ dynamic d = 1;
+ Assert (d is long, false, "#1");
+ Assert (d is int, true, "#2");
+ Assert (d is string, false, "#3");
+ }
+
void LeftShiftTest ()
{
dynamic d = (ulong) 0x7F000;