index
:
dotty
DarkDimius-patch-1
gh-pages
master
Research platform for new language concepts and compiler technologies for Scala.
about
summary
refs
log
blame
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
untried
/
neg
/
faculty.scala
blob: 1f137a48fa80e25d5b2d1b9d0bb74f253ddf1f5d (
plain
) (
tree
)
9ef5f6817
^
1
2
3
4
5
object
Test
{
def
faculty
(
x
:
Int
)
=
if
(
x
==
0
)
1
else
x
*
faculty
(
x
-
1
)
}