C#: Fixup tests.

This commit is contained in:
Michael Nebel
2023-12-08 10:20:05 +01:00
parent e42afa3d3d
commit 07a5ac31ae

View File

@@ -617,7 +617,13 @@ class ExprMissingType extends InstructionViolation {
not instruction instanceof Opcodes::Arglist and
not instruction instanceof Opcodes::Refanytype and
instruction.getPushCount() >= 1 and
count(instruction.getType()) != 1
count(instruction.getType()) != 1 and
// OS specific (osx) specific inconsistency
not instruction
.getImplementation()
.getMethod()
.hasFullyQualifiedName("System.Runtime.InteropServices.RuntimeInformation",
"get_OSDescription")
}
override string getMessage() { result = "Expression is missing getType()" }