FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug: Parser fails on associative arrays of delegates

 
Post new topic   Reply to topic     Forum Index -> Poseidon
View previous topic :: View next topic  
Author Message
Etherous



Joined: 05 Sep 2009
Posts: 6

PostPosted: Tue May 10, 2011 1:26 pm    Post subject: Bug: Parser fails on associative arrays of delegates Reply with quote

The following will cause poseidon's parser to fail when parsing a source file (attempted on v0.23 and r278):
Code:

class Foo
{
    static immutable void delegate()[string] BAR;
    static this ()
    {
        BAR = cast(typeof(BAR))
        ["a":(){}
        ];
    }
}


Edit: Upon further testing, it seems that any associative array literals will cause it to fail.
Edit: Problem only occurs if one attempts to cast the associative array
Back to top
View user's profile Send private message
Kuan Hsu



Joined: 15 Apr 2006
Posts: 143
Location: Taiwan

PostPosted: Sat Jun 11, 2011 7:13 pm    Post subject: Re: Bug: Parser fails on associative arrays of delegates Reply with quote

Etherous wrote:
The following will cause poseidon's parser to fail when parsing a source file (attempted on v0.23 and r278):
Code:

class Foo
{
    static immutable void delegate()[string] BAR;
    static this ()
    {
        BAR = cast(typeof(BAR))
        ["a":(){}
        ];
    }
}

Edit: Upon further testing, it seems that any associative array literals will cause it to fail.
Edit: Problem only occurs if one attempts to cast the associative array

Fixed at rev.279
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Poseidon All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group