Converter:

Omit Unit return type
Refactor handling of Unit type: extract separate object UnitType
This commit is contained in:
Pavel V. Talanov
2013-11-19 13:50:03 +04:00
parent 82b19499e3
commit 21bc2887d2
186 changed files with 253 additions and 245 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import java.util.*
public open class ForEach() {
public open fun test() : Unit {
public open fun test() {
val xs = ArrayList<Any>()
val ys = LinkedList<Any>()
for (x in xs)
+1 -1
View File
@@ -1,6 +1,6 @@
import java.util.*
public open class ForEach() {
public open fun test() : Unit {
public open fun test() {
var xs : ArrayList<Any?>? = ArrayList<Any?>()
var ys : MutableList<Any?>? = LinkedList<Any?>()
for (x in xs!!)
+1 -1
View File
@@ -1,6 +1,6 @@
import java.util.*
public open class Lists() {
public open fun test() : Unit {
public open fun test() {
val xs = ArrayList<Any>()
val ys = LinkedList<Any>()
val zs = ArrayList<Any>()
+1 -1
View File
@@ -1,6 +1,6 @@
import java.util.*
public open class Lists() {
public open fun test() : Unit {
public open fun test() {
var xs : MutableList<Any?>? = ArrayList<Any?>()
var ys : MutableList<Any?>? = LinkedList<Any?>()
var zs : ArrayList<Any?>? = ArrayList<Any?>()