diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-12-10 00:49:23 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-12-13 00:00:35 +0100 |
commit | dfa4e23bf8af721a4361567aef9aed672e39d4f8 (patch) | |
tree | c577526cd4462acd360abcc27add9864d12f781c /test | |
parent | a0cd0f81be9ab9ffdb1ecd09aebf43f4d7e738a8 (diff) | |
download | scala-dfa4e23bf8af721a4361567aef9aed672e39d4f8.tar.gz scala-dfa4e23bf8af721a4361567aef9aed672e39d4f8.tar.bz2 scala-dfa4e23bf8af721a4361567aef9aed672e39d4f8.zip |
simplifies checkBounds
This patch is an isomorphic transformation of checkBounds, which avoids
doing any checks altogether if the scrutinee is already erroneous.
Inspection of checkKindBounds and isWithinBounds called from checkBounds
suggests that they don't perform side effects which can't be omitted.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions