summaryrefslogtreecommitdiff
path: root/test/files/jvm/bytecode-test-example/Foo_1.scala
blob: 4f679d156fb8b73e0347507162eded93c02f7ac5 (plain) (blame)
1
2
3
4
5
6
7
8
9
class Foo_1 {
  def foo(x: AnyRef): Int = {
    val bool = x == null
    if (x != null)
      1
    else
      0
  }
}