Skip to content

Commit 50fd5ff

Browse files
committed
Add test
1 parent c376393 commit 50fd5ff

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/run/scrutable.check

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class java.lang.Integer
2+
class java.lang.String

tests/run/scrutable.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def foo[T](x: Any): Scrutable =
2+
println(x.getClass())
3+
x
4+
5+
@main def Test =
6+
val x: Scrutable = foo(1)
7+
val y: Scrutable = foo("hello")
8+
assert(x != y)
9+

0 commit comments

Comments
 (0)