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

Skip to content

Commit 9c6bcec

Browse files
committed
C#: Add model generator testcase for Negative summaries for abstract members.
1 parent 87c7dd9 commit 9c6bcec

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

csharp/ql/test/utils/model-generator/NoSummaries.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,16 @@ public object M2(Func<object, object> map, object o)
9898
{
9999
return map(o);
100100
}
101+
}
102+
103+
public abstract class BaseClass
104+
{
105+
// Negative summary.
106+
public virtual string M1(string s)
107+
{
108+
return "";
109+
}
110+
111+
// Negative summary.
112+
public abstract string M2(string s);
101113
}

0 commit comments

Comments
 (0)