File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
csharp/ql/test/utils/modelgenerator/dataflow Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -490,3 +490,61 @@ public ParameterlessConstructor()
490
490
IsInitialized = true ;
491
491
}
492
492
}
493
+
494
+ public class Inheritance
495
+ {
496
+ public abstract class BasePublic
497
+ {
498
+ // neutral=Models;Inheritance+BasePublic;Id;(System.String);summary;df-generated
499
+ public abstract string Id ( string x ) ;
500
+ }
501
+
502
+ public class AImplBasePublic : BasePublic
503
+ {
504
+ // summary=Models;Inheritance+AImplBasePublic;false;Id;(System.String);;Argument[0];ReturnValue;taint;df-generated
505
+ public override string Id ( string x )
506
+ {
507
+ return x ;
508
+ }
509
+ }
510
+
511
+ public interface IPublic1
512
+ {
513
+ // neutral=Models;Inheritance+IPublic1;Id;(System.String);summary;df-generated
514
+ string Id ( string x ) ;
515
+ }
516
+
517
+ public interface IPublic2
518
+ {
519
+ // neutral=Models;Inheritance+IPublic2;Id;(System.String);summary;df-generated
520
+ string Id ( string x ) ;
521
+ }
522
+
523
+ public abstract class B : IPublic1
524
+ {
525
+ // neutral=Models;Inheritance+B;Id;(System.String);summary;df-generated
526
+ public abstract string Id ( string x ) ;
527
+ }
528
+
529
+ private abstract class C : IPublic2
530
+ {
531
+ public abstract string Id ( string x ) ;
532
+ }
533
+
534
+ public class BImpl : B
535
+ {
536
+ // summary=Models;Inheritance+BImpl;false;Id;(System.String);;Argument[0];ReturnValue;taint;df-generated
537
+ public override string Id ( string x )
538
+ {
539
+ return x ;
540
+ }
541
+ }
542
+
543
+ private class CImpl : C
544
+ {
545
+ public override string Id ( string x )
546
+ {
547
+ return x ;
548
+ }
549
+ }
550
+ }
You can’t perform that action at this time.
0 commit comments