Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35ecb94

Browse files
committed
C#: Fix qltests.
1 parent abe961f commit 35ecb94

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

csharp/ql/test/library-tests/csharp7.2/RefReadonlyDelegate.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import csharp
33
from DelegateType del
44
where
55
del.fromSource() and
6-
del.getAnnotatedReturnType().getAnnotation().isReadonlyRef()
6+
del.getAnnotatedReturnType().isReadonlyRef()
77
select del

csharp/ql/test/library-tests/csharp7.2/RefReadonlyReturns.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import csharp
33
from Callable c
44
where
55
c.fromSource() and
6-
c.getAnnotatedReturnType().getAnnotation().isReadonlyRef()
6+
c.getAnnotatedReturnType().isReadonlyRef()
77
select c
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import csharp
22

33
from DelegateType t
4-
where t.returnsRef()
4+
where t.getAnnotatedReturnType().isRef()
55
select t

csharp/ql/test/library-tests/csharp7/RefFunctions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import csharp
22

33
from Callable f
44
where
5-
f.returnsRef() and
5+
f.getAnnotatedReturnType().isRef() and
66
f.fromSource()
77
select f

0 commit comments

Comments
 (0)