Skip to content

Commit 72ee855

Browse files
nicolasstuckismarter
authored andcommitted
Add regression test for classOf on an object.
1 parent 84ba712 commit 72ee855

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run/classof-object.decompiled

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** Decompiled from out/runTestFromTasty/run/classof-object/Test.tasty */
2+
object Test {
3+
def main(args: scala.Array[scala.Predef.String]): scala.Unit = if (scala.Predef.classOf[Test.type].==(Test.getClass()).unary_!) dotty.DottyPredef.assertFail() else ()
4+
}

0 commit comments

Comments
 (0)