Skip to content
Browse files

Fix recursive examples, since we now do try to infer both branches of…

… an If.
  • Loading branch information...
1 parent 27409a0 commit 7dad0ebf726825e04d897a7f0351f0ac643ff2b5 @headius headius committed Mar 20, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/fib.mirah
  2. +1 −1 examples/tak.mirah
View
2 examples/fib.mirah
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-def fib(a:int)
+def fib(a:int):int
if a < 2
a
else
View
2 examples/tak.mirah
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-def tak(x:fixnum, y:fixnum, z:fixnum)
+def tak(x:int, y:int, z:int):int
unless y < x
z
else

0 comments on commit 7dad0eb

Please sign in to comment.
Something went wrong with that request. Please try again.