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:
Alexander Udalov
2013-01-25 00:55:52 +04:00
parent 74467df3ef
commit df5b809b46
21 changed files with 184 additions and 197 deletions
@@ -20,6 +20,7 @@ class X {
fun foo(x: Int) {}
fun main(args: Array<String>) {
fun box(): String {
X().test()
return "OK"
}