Summary: wrong lookup: interface declaration inside function
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD

void foo()
    interface I { }
void bar()
    interface I { void foo(); }
    I i;;
test.d(9): Error: no property 'foo' for type ''
test.d(9): Error: function expected before (), not __error of type int

The compiler uses foo.I instead of bar.I. This prevents me from using local
interfaces inside unittests.

This does not happen with classes nor structs.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to