diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2019-01-24 09:26:53 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-01-24 09:26:53 -0800 |
commit | 4ec2e2c724b86fac13b0445aee5200d1ea6761fd (patch) | |
tree | 6dacff85e61e9ab2125e6fb6675285a896af7565 | |
parent | d58c54c3ade3cb43f3558ddc22ab948169e95b1e (diff) | |
download | coreclr-4ec2e2c724b86fac13b0445aee5200d1ea6761fd.tar.gz coreclr-4ec2e2c724b86fac13b0445aee5200d1ea6761fd.tar.bz2 coreclr-4ec2e2c724b86fac13b0445aee5200d1ea6761fd.zip |
Fix test build warning. (#22168)
I decided to suppress the warning for the test instead of
removing the test for test matrix completeness.
Fixes #21519.
-rw-r--r-- | tests/src/JIT/opt/Casts/tests.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/src/JIT/opt/Casts/tests.cs b/tests/src/JIT/opt/Casts/tests.cs index 9a2dc400ad..d8131fbbbc 100644 --- a/tests/src/JIT/opt/Casts/tests.cs +++ b/tests/src/JIT/opt/Casts/tests.cs @@ -84,11 +84,14 @@ class F return l is I<string>; } + #pragma warning disable CS0184 + // warning CS0184: The given expression is never of the provided ('I<object>') type [MethodImpl(MethodImplOptions.NoInlining)] static bool IsJIObject(J j) { return j is I<object>; } + #pragma warning restore CS0184 [MethodImpl(MethodImplOptions.NoInlining)] static bool IsKIObject(K k) |