Advertisement
Guest User

Untitled

a guest
Jun 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.95 KB | None | 0 0
  1. diff -r af31ff7a68c6 dmd/mtype.c
  2. --- a/dmd/mtype.c   Mon Oct 04 00:58:14 2010 +0200
  3. +++ b/dmd/mtype.c   Sun Oct 10 20:46:31 2010 +0200
  4. @@ -1910,16 +1910,23 @@ void TypeSArray::resolve(Loc loc, Scope
  5.                  return;
  6.              }
  7.              if (o->dyncast() == DYNCAST_EXPRESSION)
  8.              {
  9.                  *ps = NULL;
  10.                  *pe = (Expression *)o;
  11.                  return;
  12.              }
  13. +            if (o->dyncast() == DYNCAST_TYPE)
  14. +            {
  15. +                *ps = NULL;
  16. +                *pe = NULL;
  17. +                *pt = (Type *)o;
  18. +                return;
  19. +            }
  20.  
  21.              /* Create a new TupleDeclaration which
  22.               * is a slice [d..d+1] out of the old one.
  23.               * Do it this way because TemplateInstance::semanticTiargs()
  24.               * can handle unresolved Objects this way.
  25.               */
  26.              Objects *objects = new Objects;
  27.              objects->setDim(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement