Skip to content

opaque type selects different method with -from-tasty  #11819

Closed
@bishabosha

Description

@bishabosha

Compiler version

3.0.0-RC1

Minimized code

package opaquetypes

object `package`:

  opaque type Foo = Double

  object Bar:

    class Baz(val i: Foo):
      def foo(that: Any): Boolean = that match
        // `Double.==` selected from source; `Any.==` selected `-from-tasty`
        case that1 @ (_: Baz) => Baz.this.i == that1.i
        case _ => true

Expectation

Double.== should also be selected with -from-tasty, the issue arises when if you actually select Double.== in unpickling then the checker does not expect it

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions