Skip to content

Commit 810db83

Browse files
committed
Remove unnecessary main.
1 parent 2731175 commit 810db83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/src/dotty/tools/dotc/config/Properties.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,10 @@ trait PropertiesTrait {
135135
}
136136
okVersions exists (javaVersion startsWith _)
137137
}
138+
139+
// provide a main method so version info can be obtained by running this
140+
def main(args: Array[String]): Unit = {
141+
val writer = new PrintWriter(Console.err, true)
142+
writer println versionMsg
143+
}
138144
}

0 commit comments

Comments
 (0)