Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,12 @@
|
|||
class Example {
|
||||
def foo(x: Int): Int = 42 + x
|
||||
}
|
||||
|
||||
object Main extends App {
|
||||
val example = new Example
|
||||
|
||||
val meth = example.getClass.getMethod("foo", classOf[Int])
|
||||
|
||||
assert(meth.invoke(example, 5.asInstanceOf[AnyRef]) == 47.asInstanceOf[AnyRef], "Not confirm expectation.")
|
||||
println(s"Successfully completed without errors. [total ${scala.compat.Platform.currentTime - executionStart} ms]")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue