File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1765,8 +1765,7 @@ class Super extends TSuper, Expr {
17651765 override string getAPrimaryQlClass ( ) { result = "Super" }
17661766
17671767 override Type getType ( ) {
1768- exists ( TypeExpr te | ref .getChild ( 0 ) = toQL ( te ) | result = te .getResolvedType ( ) )
1769- // TODO: Also resolve the type when there is no TypeExpr.
1768+ exists ( MemberCall call | call .getBase ( ) = this | result = call .getTarget ( ) .getDeclaringType ( ) )
17701769 }
17711770}
17721771
Original file line number Diff line number Diff line change 5050| Test.qll:24:24:24:33 | Super | Test.qll:15:1:19:1 | Base |
5151| Test.qll:24:24:24:39 | MemberCall | file://:0:0:0:0 | int |
5252| Test.qll:26:16:26:21 | result | file://:0:0:0:0 | int |
53+ | Test.qll:26:25:26:29 | Super | Test.qll:15:1:19:1 | Base |
5354| Test.qll:26:25:26:35 | MemberCall | file://:0:0:0:0 | int |
You can’t perform that action at this time.
0 commit comments