diff options
author | odersky <odersky@gmail.com> | 2014-12-13 20:52:07 +0100 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2014-12-13 20:52:07 +0100 |
commit | 6542458dad39115734aa3d9cce9dff08a6176fb9 (patch) | |
tree | acf8cc3575bcc625aaf7e1715ba60a0c71b89b1b /tests | |
parent | f3d887f079efbe7dbb53abd22bd212eee8e1c67a (diff) | |
parent | 9f87127c40a2b8ac0c8f97d039053e4d2f7577e4 (diff) | |
download | dotty-6542458dad39115734aa3d9cce9dff08a6176fb9.tar.gz dotty-6542458dad39115734aa3d9cce9dff08a6176fb9.tar.bz2 dotty-6542458dad39115734aa3d9cce9dff08a6176fb9.zip |
Merge pull request #283 from dotty-staging/fix/#291-null-primitive-conforms
Disable implicit conversions between from `Null` and `Nothing`.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/i0281-null-primitive-conforms.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/i0281-null-primitive-conforms.scala b/tests/neg/i0281-null-primitive-conforms.scala new file mode 100644 index 000000000..469e72324 --- /dev/null +++ b/tests/neg/i0281-null-primitive-conforms.scala @@ -0,0 +1,6 @@ +object test { + val b: scala.Boolean = null + val c: Unit = null + val d: Float = null + val e: AnyVal = null +} |