We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
private
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
3.5.2
class Foo: inline def inlineMatch[T]: String = inline compiletime.erasedValue[T] match case _: EmptyTuple => "" case _: (h *: _) if checkType[h] => "" private inline def checkType[T]: Boolean = inline compiletime.erasedValue[T] match case _: Int => true case _ => false val foo = Foo() foo.inlineMatch[(Int, Boolean)] // Error
[error] |cannot reduce inline match with [error] | scrutinee: compiletime.package$package.erasedValue[(Int, Boolean)] : (Int, Boolean) [error] | patterns : case _:EmptyTuple [error] | case _:*:[h @ _, _ @ >: Nothing <: Any] if Foo_this.asInstanceOf[Foo].checkType[h]
If this is indeed not supposed to work, I would expect a clearer error message.
The text was updated successfully, but these errors were encountered:
jchyb
Successfully merging a pull request may close this issue.
Compiler version
3.5.2
Minimized code
Output
Expectation
If this is indeed not supposed to work, I would expect a clearer error message.
The text was updated successfully, but these errors were encountered: