Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
TypesafeMethodTest.groovy
blob: 7238cc3b208d039e0ca8e544e6741bb0de72440c [
file
] [
log
] [
blame
]
class
TypesafeMethodTest
extends
GroovyTestCase
{
void
testTypesafeMethod
()
{
def
y
=
someMethod
(
1
)
assert
y
==
2
}
Integer
someMethod
(
Integer
i
)
{
return
i
+
1
}
}