diff options
author | James Iry <jamesiry@gmail.com> | 2013-03-08 08:31:57 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-03-08 08:31:57 -0800 |
commit | fd21898db304f45fa12178662c9f1e5b793d6830 (patch) | |
tree | ccfb26864991002cc646adb1a11c5809584f5bfe /test/files/run/t7231.check | |
parent | 5967a664ab1129e28687c591bd94c0e482cb305f (diff) | |
download | scala-fd21898db304f45fa12178662c9f1e5b793d6830.tar.gz scala-fd21898db304f45fa12178662c9f1e5b793d6830.tar.bz2 scala-fd21898db304f45fa12178662c9f1e5b793d6830.zip |
SI-7231 Fix assertion when adapting Null type to Array type
GenICode was doing a sanity check when adapting an expression of type
Null to something else. It was just doing the wrong one. Instead of
checking whether the result expression type was a reference type it
was checking to see if it was an class reference type. This commit fixes
that and adds a test to make sure both forms of adaptation work as
expected.
Diffstat (limited to 'test/files/run/t7231.check')
-rw-r--r-- | test/files/run/t7231.check | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/t7231.check b/test/files/run/t7231.check new file mode 100644 index 0000000000..c1e4b6c175 --- /dev/null +++ b/test/files/run/t7231.check @@ -0,0 +1,2 @@ +null +null |