Skip to content

Commit

Permalink
fix typeof(this) docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejMitrovic committed Sep 30, 2012
1 parent 7f45e52 commit 476dcb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions declaration.dd
Expand Up @@ -607,8 +607,9 @@ class B : A {
}

struct C {
$(B typeof(this)) z; // z is declared to be a C*
$(B typeof(super)) q; // error, no super struct for C
$(V2 $(B static typeof(this)) z; // z is declared to be a C)
$(V1 $(B typeof(this)) z; // z is declared to be a C*)
$(B typeof(super)) q; // error, no super struct for C
}

$(B typeof(this)) r; // error, no enclosing struct or class
Expand Down

0 comments on commit 476dcb4

Please sign in to comment.