Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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