effekt-lang / effekt-lang/effekt
Improve capture set inference for lexically closest capability search
Open
area:typer
- Dominant language
- Scala
- Stars
- 469
- Forks
- 41
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 23
Description
_Extracted / follow-up from #1194_
The following program still does not work, the capability set is not inferred:
```scala
interface Greet[T] { def sayHello(x: T): Unit }
def helloWorld() = try {
do sayHello(box {})
// ⚠️error: Effects need to be fully known, but effect Greet[() => Unit at ?C]'s type parameter(s) ?10319 could not be inferred.
// info: Did you mean to use an operation of the concrete interface Greet[() => Unit at {}]?
} with Greet[=> Unit at {}] {
def sayHello(x) = { println("Hello!"); resume(()) }
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.