[Issue 7498] New: function expected before (), not <function>

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 13 16:47:06 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7498

           Summary: function expected before (), not <function>
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-02-13 16:47:04 PST ---
dmd 2.058 beta.

the code:

template Heap(){
    template Inner(){
        mixin template IndexMixin(){
            void insert(SomeValue)(SomeValue value){
            }
        }
    }
}
class MultiIndexContainer(Value, Args...){
    alias Args[0] L0;
    alias L0.Inner!() M0;
    mixin M0.IndexMixin!() index0;
    class Index0{
        void baburk(){
            this.outer.index0.insert(1);
        }
    }
}
alias MultiIndexContainer!(int, Heap!()) C1;

void main(){}

the fireworks:

multi_index.d(15): Error: function expected before (), not
'this.this.this.insert(SomeValue)'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list