Turn soft failure into hard failure.

If we cannot guarantee the assignability at compile-time, neither can we
at runtime.

Test: test.py
Bug: 28313047
Change-Id: I42070a523a003f067370e739f1d808610dfefbaa
1 file changed