Skip to content

dotr should exec scripts #4747

Closed
Closed
@tisonkun

Description

@tisonkun

Consider script below

// script.scala
def truth(): Int = 42
println(truth())

In Scala, we can use command scala to exec it directly.

$ scala script.scala 
42
$ 

But dotr could not identify bare script, and it complains

$ dotr script.scala 
Error: Could not find or load main class script.scala
$ 

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions