mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
@@ -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; }
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user