Adjust testData to CharSequence.length transformation

This commit is contained in:
Denis Zharkov
2015-10-12 20:29:01 +03:00
committed by Mikhail Glukhikh
parent cb562e7ea5
commit f0e3fd617d
348 changed files with 524 additions and 540 deletions

View File

@@ -2,16 +2,6 @@ import java.lang.*;
import java.util.*;
public class Test {
public static class IterableImpl implements Iterable<String> {
public Iterator<String> iterator() { return new IteratorImpl(); }
}
public static class IteratorImpl implements Iterator<String> {
public boolean hasNext() { return false; }
public String next() { return null; }
public void remove() { }
}
public static class MapEntryImpl implements Map.Entry<String, String> {
public String getKey() { return null; }
public String getValue() { return null; }

View File

@@ -1,14 +1,8 @@
class MyIterable : Test.IterableImpl()
class MyIterator : Test.IteratorImpl()
//class MyIterable : Test.IterableImpl()
//class MyIterator : Test.IteratorImpl()
class MyMapEntry : Test.MapEntryImpl()
fun box(): String {
MyIterable().iterator()
val a = MyIterator()
a.hasNext()
a.next()
a.remove()
val b = MyMapEntry()
b.getKey()