Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 772:cd7da2ba14d1

Show
Ignore:
Timestamp:
11/18/08 11:14:57 (4 years ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Fix bug reported by downs. Related to delegate types within tuple template parameters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmd/mtype.c

    r771 r772  
    29512951    {   Argument *arg = Argument::getNth(tf->parameters, i); 
    29522952        Type *t; 
     2953 
     2954        // each function needs its own copy of a tuple arg, since 
     2955        // they mustn't share arg flags like inreg, ... 
     2956        if (arg->type->ty == Ttuple) 
     2957        arg->type = arg->type->syntaxCopy(); 
    29532958 
    29542959        tf->inuse++; 
     
    34673472    } 
    34683473    if (t->ty == Ttuple) 
    3469         *pt = t->syntaxCopy()
     3474        *pt = t
    34703475    else 
    34713476        *pt = t->merge(); 
Copyright © 2008, LDC Development Team.