Created
September 3, 2024 03:40
-
-
Save nagat01/c99f350a3704115e5a83b6740afa9d46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scala.language.strictEquality | |
| class A[T](val x: T) derives CanEqual | |
| given CanEqual[Int, String] = CanEqual.derived | |
| @main def main = | |
| println(A(1) == A("a")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment