We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The following code snippet does not compile with Dotty:
class Set[A] { def incl(elem: A): Set[A] = ??? inline final def + (elem: A): Set[A] = incl(elem) } object Set { def apply[A](elems: A*): Set[A] = ??? } class Test { Set(1) + 1 }
-- Error: tests/allan/Test.scala:13:9 ------------------------------------------ 13 | Set(1) + 1 | ^^^^^^^^^^ |undefined: Set_this.incl # 191: TermRef(TermRef(NoPrefix,val Set_this),incl[with sig Signature(List(java.lang.Object),Set)])
It compiles without the inline keyword.
inline
The text was updated successfully, but these errors were encountered:
Merge pull request #3494 from dotty-staging/fix-#3488
7848ef6
Rework NamedTypes
Fixed by #3494
Sorry, something went wrong.
No branches or pull requests
The following code snippet does not compile with Dotty:
It compiles without the
inline
keyword.The text was updated successfully, but these errors were encountered: