unaryOp("-","nuint",null,null,null,null,Diagnostic(ErrorCode.ERR_AmbigUnaryOp,"-operand").WithArguments("-","nuint"));// PROTOTYPE: Should report ERR_BadUnaryOp.
unaryOp("-","System.IntPtr");
//unaryOp("-", "System.IntPtr"); // PROTOTYPE: Not handled.
unaryOp("-","System.UIntPtr");
unaryOp("!","nint");
unaryOp("!","nuint");
...
...
@@ -1744,8 +2426,8 @@ .maxstack 1
IL_0001: not
IL_0002: ret
}");
unaryOp("~","System.IntPtr");
unaryOp("~","System.UIntPtr");
//unaryOp("~", "System.IntPtr"); // PROTOTYPE: Not handled.
//unaryOp("~", "System.UIntPtr"); // PROTOTYPE: Not handled.
unaryOp("-","nuint?",null,null,null,null,Diagnostic(ErrorCode.ERR_AmbigUnaryOp,"-operand").WithArguments("-","nuint?"));// PROTOTYPE: Should report ERR_BadUnaryOp.
unaryOp("-","System.IntPtr?");
//unaryOp("-", "System.IntPtr?"); // PROTOTYPE: Not handled.
unaryOp("-","System.UIntPtr?");
unaryOp("!","nint?");
unaryOp("!","nuint?");
...
...
@@ -1859,14 +2541,13 @@ .maxstack 1
IL_001d: newobj ""nuint?..ctor(nuint)""
IL_0022: ret
}");
unaryOp("~","System.IntPtr?");
unaryOp("~","System.UIntPtr?");
}
//unaryOp("~", "System.IntPtr?"); // PROTOTYPE: Not handled.
//unaryOp("~", "System.UIntPtr?"); // PROTOTYPE: Not handled.