diff options
Diffstat (limited to 'tests/pos/nullarify.scala')
-rw-r--r-- | tests/pos/nullarify.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/nullarify.scala b/tests/pos/nullarify.scala new file mode 100644 index 000000000..62d16ba11 --- /dev/null +++ b/tests/pos/nullarify.scala @@ -0,0 +1,13 @@ +object Test { + + def foo: Int = 2 + + println(foo) + + def bar(x: => Int) = x + baz(x) + + def baz(y: => Int) = y + + bar(foo) + +} |