Skip to content

SI-7231 Fix assertion when adapting Null type to Array type#2216

Merged
JamesIry merged 1 commit intoscala:masterfrom
JamesIry:master_7231
Mar 8, 2013
Merged

SI-7231 Fix assertion when adapting Null type to Array type#2216
JamesIry merged 1 commit intoscala:masterfrom
JamesIry:master_7231

Conversation

@JamesIry
Copy link
Contributor

@JamesIry JamesIry commented Mar 8, 2013

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.

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.
@dragos
Copy link
Contributor

dragos commented Mar 8, 2013

LGTM :)

JamesIry added a commit that referenced this pull request Mar 8, 2013
SI-7231 Fix assertion when adapting Null type to Array type
@JamesIry JamesIry merged commit 14d51f4 into scala:master Mar 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants