Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'can not find symbol' for local class + interface method returning the local class #2275

Open
jpragey opened this issue Aug 18, 2015 · 2 comments
Labels
Milestone

Comments

@jpragey
Copy link

jpragey commented Aug 18, 2015

Compiling:

shared void run() {
    interface I {
        shared formal A a();
    }
    class A() satisfies I {
        shared actual A a() => nothing;
    }
}

causes:

$ ceylon compile
source/bug/run.ceylon:8: warning: expression has type 'Nothing'
        shared actual A a() => nothing;
                               ^
source/bug/run.ceylon:5: error: cannot find symbol
        shared formal A a();
               ^
  symbol:   class A
  location: interface run$I_
Note: Created module bug/1.0.0
ceylon compile: There was 1 error

Compilation is OK if A and I are member or external class/interface.

@gavinking gavinking added the BUG label Aug 18, 2015
@gavinking gavinking added this to the 1.2 milestone Aug 18, 2015
@sgalles
Copy link

sgalles commented Aug 19, 2015

could this be a dup of #2185 ?

@tombentley
Copy link
Member

Well it's a better match for #2212 I think, which we've marked for 1.3, so I'm going to defer this one to 1.3 also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants