force Top.main's return type to Unit
This commit is contained in:
1 parent
5819beed64
commit
4cfa6cd9a8
1 file changed
+1
-1
@@ -81,7 +81,7 @@ class Top extends Component
|
||||
}
|
||||
|
||||
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])
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user