function invocation with only type parameters prohibited
This commit is contained in:
@@ -2,7 +2,7 @@ import java.util.*
|
||||
import java.io.*
|
||||
|
||||
class World() {
|
||||
public val items: ArrayList<Item> = ArrayList<Item>
|
||||
public val items: ArrayList<Item> = ArrayList<Item>()
|
||||
|
||||
class Item() {
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ fun box() : String {
|
||||
// val vals = iarray(789, 678, 567, 456, 345, 234, 123, 012)
|
||||
|
||||
val vals = iarray(789, 678, 567, 456, 345, 234, 123, 12)
|
||||
val diffs = HashSet<Int>
|
||||
val diffs = HashSet<Int>()
|
||||
for (i in vals.indices)
|
||||
for (j in i..vals.lastIndex())
|
||||
diffs.add(vals[i] - vals[j])
|
||||
|
||||
@@ -10,5 +10,5 @@ class Box<T>() {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Box<String>.inner().isT("OK")
|
||||
return Box<String>().inner().isT("OK")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user