1
0

force Top.main's return type to Unit

This commit is contained in:
Andrew Waterman 2012-05-01 19:55:16 -07:00
parent 5819beed64
commit 4cfa6cd9a8

View File

@ -81,7 +81,7 @@ class Top extends Component
} }
object top_main { object top_main {
def main(args: Array[String]) = { def main(args: Array[String]): Unit = {
chiselMain(args.drop(1), () => Class.forName(args(0)).newInstance.asInstanceOf[Component]) chiselMain(args.drop(1), () => Class.forName(args(0)).newInstance.asInstanceOf[Component])
} }
} }