Skip to content

Commit 8c2931c

Browse files
committed
C#: Operators are now allowed to be declared virtual.
1 parent 7f880a2 commit 8c2931c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

csharp/ql/lib/semmle/code/csharp/Member.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private class TOverridable = @virtualizable or @callable_accessor;
184184

185185
/**
186186
* A declaration that can be overridden or implemented. That is, a method,
187-
* a property, an indexer, an event, or an accessor.
187+
* a property, an indexer, an event, an accessor, or an operator.
188188
*
189189
* Unlike `Virtualizable`, this class includes accessors.
190190
*/
@@ -360,7 +360,7 @@ class Overridable extends Declaration, TOverridable {
360360

361361
/**
362362
* A member where the `virtual` modifier is valid. That is, a method,
363-
* a property, an indexer, or an event.
363+
* a property, an indexer, an event or an operator.
364364
*
365365
* Equivalently, these are the members that can be defined in an interface.
366366
*

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ compiler_generated(unique int id: @modifiable ref);
670670

671671
@named_exprorstmt = @goto_stmt | @labeled_stmt | @expr;
672672

673-
@virtualizable = @method | @property | @indexer | @event;
673+
@virtualizable = @method | @property | @indexer | @event | @operator;
674674

675675
exprorstmt_name(
676676
unique int parent_id: @named_exprorstmt ref,

0 commit comments

Comments
 (0)