-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orphan type parameter references crash pickler in capture checked programs #20272
Labels
area:experimental:cc
Capture checking related
cc-experiment
Intended to be merged with cc-experiment branch on origin
itype:bug
Comments
Linyxus
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Apr 26, 2024
Linyxus
added
cc-experiment
Intended to be merged with cc-experiment branch on origin
area:experimental:cc
Capture checking related
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Apr 26, 2024
Minimised from the failing projects in #19939 (comment) |
Another case with overriden methods: import language.experimental.captureChecking
trait Iterable[T] { self: Iterable[T]^ =>
def map[U](f: T => U): Iterable[U]^{this, f}
}
object Test {
def foo[T](level: Int, lines: Iterable[T]) =
lines.map(x => x)
class Bar:
def bar(messages: Iterable[String]) =
foo(1, messages)
class Baz extends Bar:
override def bar(messages: Iterable[String]) = ???
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:experimental:cc
Capture checking related
cc-experiment
Intended to be merged with cc-experiment branch on origin
itype:bug
Compiler version
main
Minimized code
Output
Expectation
It should at least not crash.
The text was updated successfully, but these errors were encountered: