diff options
Diffstat (limited to 'test/files/run/richWrapperEquals.scala')
-rw-r--r-- | test/files/run/richWrapperEquals.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/richWrapperEquals.scala b/test/files/run/richWrapperEquals.scala new file mode 100644 index 0000000000..44beb133b3 --- /dev/null +++ b/test/files/run/richWrapperEquals.scala @@ -0,0 +1,10 @@ +object Test { + def main(args: Array[String]): Unit = { + assert(intWrapper(5) == 5) + assert(5 == intWrapper(5)) + assert(5 == (5: java.lang.Integer)) + assert((5: java.lang.Integer) == 5) + assert((5: java.lang.Integer) == intWrapper(5)) + assert(intWrapper(5) == (5: java.lang.Integer)) + } +} |