Skip to content

Sealed traits passed as inline arguments cause an NPE #9655

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

Closed
nicolasstucki opened this issue Aug 27, 2020 · 1 comment
Closed

Sealed traits passed as inline arguments cause an NPE #9655

nicolasstucki opened this issue Aug 27, 2020 · 1 comment

Comments

@nicolasstucki
Copy link
Contributor

Sealed traits passed as inline arguments cause an NPE

inline def foo[T](inline body: T): T = body

def test = foo {
  sealed trait Status
  object Active extends Status
}

Originally posted by @nicolasstucki in #9572 (comment)

nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Aug 27, 2020
@odersky
Copy link
Contributor

odersky commented Aug 28, 2020

Duplicate of #9572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants