Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

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

Open
CeylonMigrationBot opened this issue Aug 18, 2015 · 2 comments

Comments

@CeylonMigrationBot
Copy link

[@jpragey] 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.

[Migrated from ceylon/ceylon-compiler#2275]

@CeylonMigrationBot
Copy link
Author

[@sgalles] could this be a dup of #2185 ?

@CeylonMigrationBot
Copy link
Author

[@tombentley] 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant