KT-2370: foo.equals(bar) doesn't compile in JS.
Only test. #KT-2370
This commit is contained in:
@@ -41,4 +41,8 @@ public final class EqualsTest extends AbstractExpressionTest {
|
||||
public void testStringsEqual() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testKt2370() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
import java.util.*
|
||||
fun box(): Boolean {
|
||||
val data = ArrayList<String>()
|
||||
data.add("foo")
|
||||
data.add("bar")
|
||||
data.add("whatnot")
|
||||
val data2 = ArrayList<String>()
|
||||
data2.addAll(data)
|
||||
return data.equals(data2)
|
||||
}
|
||||
Reference in New Issue
Block a user