-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
bugSomething isn't workingSomething isn't workingerrormessagefirst-hackathon-issueGood issue for a first hackathon contributionGood issue for a first hackathon contribution
Description
Effekt crashes with the following error if you incorrectly try to use an effect that's aliased to an interface:
Exception in thread "main" java.lang.ClassCastException: class effekt.symbols.EffectAlias cannot be cast to class effekt.symbols.BlockTypeConstructor$Interface (effekt.symbols.EffectAlias and effekt.symbols.BlockTypeConstructor$Interface are in unnamed module of loader 'app')
On the web, it crashes with TypeError: can't access property "a", a is undefined.
interface Term {
def num(n: Int): Unit
}
effect Readback = Term
def main() =
try go()
with Readback {
def num(n) = resume(println(n))
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingerrormessagefirst-hackathon-issueGood issue for a first hackathon contributionGood issue for a first hackathon contribution