summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/shl/basic.check6
-rw-r--r--test/files/shl/basic.scala5
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/shl/basic.check b/test/files/shl/basic.check
index 2a4cd09b49..9439e81b3b 100644
--- a/test/files/shl/basic.check
+++ b/test/files/shl/basic.check
@@ -34,5 +34,11 @@ length(Nil)
}
> val p1: $console$25.Point = Point(3,7)
> Point(10,10): $console$25.Point
+> > true: scala.Boolean
+> false: scala.Boolean
+> string: java.lang.String("string")
+> Exception in thread "main" java.lang.ClassCastException: class java.lang.String is not an instance of class scala.Int
+ at $console$31.$console$31(<console>:1)
+ at <root>.$console$31(<console>:1)
> > >
[Leaving scalarun]
diff --git a/test/files/shl/basic.scala b/test/files/shl/basic.scala
index 4b0841f5e6..5d1264e901 100644
--- a/test/files/shl/basic.scala
+++ b/test/files/shl/basic.scala
@@ -38,4 +38,9 @@ class Point(x: Int, y: Int) {
val p1 = new Point(3,7)
p1.move(7,3)
+"string".isInstanceOf[String]
+"string".isInstanceOf[Int]
+"string".asInstanceOf[String]
+"string".asInstanceOf[Int]
+
//############################################################################