Refactor CodegenTestCase
- prohibit main(Array<String>) in favor of box(): String - move all script-related code to ScriptGenTest - remove unused environment-creating methods - inline trivial methods & other minor stuff
This commit is contained in:
@@ -20,6 +20,7 @@ class X {
|
||||
|
||||
fun foo(x: Int) {}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
fun box(): String {
|
||||
X().test()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user