You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importscala.annotation.infiximportscala.annotation.alphatraitMultiSet[T] {
@alpha("intersection")
def*(other: MultiSet[T]):MultiSet[T]
}
deftest() = {
vals1, s2:MultiSet[Int] =???// comment out and the last statement fails with @alpha annotation "intersection" clashes with other definition is same scope//s1 * s2 //s1 * s2
s1.*(s2)
}
Note that it also happens if there is a top-level operator defined where the operator defined in the trait does not even need to be used (enough if it is in scope I guess)
see https://scastie.scala-lang.org/m40Jbs3nRMm3Dgb4RYRqcQ for more details.
Compilation output
@alpha annotation "foo" clashes with other definition is same scope
expectation
Should work
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
minimized code
see for more details https://scastie.scala-lang.org/rnMia7lzSY2V9iLOya0w0Q
Note that it also happens if there is a top-level operator defined where the operator defined in the trait does not even need to be used (enough if it is in scope I guess)
see https://scastie.scala-lang.org/m40Jbs3nRMm3Dgb4RYRqcQ for more details.
Compilation output
expectation
Should work
The text was updated successfully, but these errors were encountered: