JET-50 Drop the 'new' keyword
This commit is contained in:
@@ -6,13 +6,13 @@ class Outer(val foo: StringBuilder) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
return new Inner()
|
||||
return Inner()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val sb = new StringBuilder("xyzzy")
|
||||
val o = new Outer(sb)
|
||||
val sb = StringBuilder("xyzzy")
|
||||
val o = Outer(sb)
|
||||
val i = o.test()
|
||||
val l = i.len()
|
||||
return if (l != 5) "fail" else "OK"
|
||||
|
||||
Reference in New Issue
Block a user