Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a11d852 commit 15e8847Copy full SHA for 15e8847
1 file changed
csharp/ql/src/semmle/code/csharp/exprs/Expr.qll
@@ -617,7 +617,7 @@ class Cast extends Expr {
617
TypeAccess getTypeAccess() { result = this.getChild(1) }
618
619
/** Gets the type that the underlying expression is being cast to. */
620
- Type getTargetType() { result = this.getTypeAccess().getTarget() }
+ Type getTargetType() { result = this.getType() }
621
622
/** Gets the type of the underlying expression. */
623
Type getSourceType() { result = this.getExpr().getType() }
0 commit comments