effekt-lang / effekt-lang/effekt

"Effect is not allowed in this context" caused by effect with type argument of boxed effectful function

Open
#1,210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

```effekt
interface Foo {}
interface Bar[C] {}

def a(): Unit / Bar[() => Unit / Foo at {}] = ()

def b(): Unit / {} = {
try a() // Effect Bar[() => Unit / { Foo } at {}] is not allowed in this context.
with Bar[() => Unit / Foo at {}] {}
}
```
The issue disappears if `/ Foo` is deleted.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.