diff options
Diffstat (limited to 'tests/pos/typeinferNull.scala')
-rw-r--r-- | tests/pos/typeinferNull.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/typeinferNull.scala b/tests/pos/typeinferNull.scala new file mode 100644 index 000000000..ba25ae181 --- /dev/null +++ b/tests/pos/typeinferNull.scala @@ -0,0 +1,9 @@ +object typeinferNull { + + val x1 = null :: Nil + val x2 = List(null) + + var y1: List[Null] = x1 + y1 = x2 + +} |