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

CCE "Retrieving Fixes" #1413

Closed
DiegoCoronel opened this issue Jul 28, 2015 · 6 comments
Closed

CCE "Retrieving Fixes" #1413

DiegoCoronel opened this issue Jul 28, 2015 · 6 comments
Milestone

Comments

@DiegoCoronel
Copy link
Contributor

create a shortcut method with this code:

    shared actual Comparison compare(Jogadas other) =>
        switch (other)
        case (tesoura) 
            smaller; //Intentional, some syntar error
        case (papel) 
            equal
        case (pedra) 
            larger

and put mouse hover switch word..

Result:

An internal error occurred during: "Retrieving Fixes".
com.redhat.ceylon.compiler.typechecker.tree.CustomTree$MethodDeclaration cannot be cast to com.redhat.ceylon.compiler.typechecker.tree.Tree$SwitchStatement
@DiegoCoronel
Copy link
Contributor Author

if its not clear enough tell me and i can elaborate it better, Im right now in a working meet ;)

@gavinking gavinking added this to the Ceylon 1.2 milestone Jul 28, 2015
@davidfestal
Copy link
Contributor

@gavinking : it seems to me that it might be fixed by your following commit : 364a6ca
Am I right ?
@DiegoCoronel : does the problem still happen ?

@gavinking
Copy link
Contributor

Yes, surely the same problem. I did not notice this issue.

@DiegoCoronel
Copy link
Contributor Author

i tried today but with yesterday source, here a complete sample that reproduces same error:

abstract class Test() of foo | bar{}

object foo extends Test(){}
object bar extends Test(){}

void test(Test test) {
    Test a = 
    switch(test)
    case (foo) foo // put ',' here to force a error and mouse hover 'switch' word
    case (bar)bar;
}

@DiegoCoronel
Copy link
Contributor Author

ill update everything here to todays source...

@gavinking
Copy link
Contributor

Should be fixed now.

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

4 participants