summaryrefslogtreecommitdiff
path: root/test/files/pos/t402.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t402.scala')
-rw-r--r--test/files/pos/t402.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t402.scala b/test/files/pos/t402.scala
new file mode 100644
index 0000000000..a5a3df4825
--- /dev/null
+++ b/test/files/pos/t402.scala
@@ -0,0 +1,7 @@
+object Main {
+ def main(args: Array[String]): Unit = {
+ val x: Any = 2
+ System.out.println((0.5).isInstanceOf[Int]);
+ System.out.println(x.isInstanceOf[Int]);
+ }
+}