function invocation with only type parameters prohibited
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
|
||||
class X<A, B : A>()
|
||||
|
||||
val b = X<Any, X<A<C>, C>>
|
||||
val b0 = X<Any, <error>Any?</error>>
|
||||
val b1 = X<Any, X<A<C>, <error>String</error>>>
|
||||
val b = X<Any, X<A<C>, C>>()
|
||||
val b0 = X<Any, <error>Any?</error>>()
|
||||
val b1 = X<Any, X<A<C>, <error>String</error>>>()
|
||||
|
||||
@@ -16,8 +16,8 @@ fun test(<warning>l</warning> : java.util.List<Int>) {
|
||||
|
||||
val <warning>f</warning> : java.io.File? = null
|
||||
|
||||
Collections.<error>emptyList</error>
|
||||
Collections.emptyList<Int>
|
||||
Collections.<error><error>emptyList</error></error>
|
||||
Collections.<error>emptyList<Int></error>
|
||||
Collections.emptyList<Int>()
|
||||
Collections.<error>emptyList()</error>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ abstract class Item(val room: Object) {
|
||||
abstract val name : String
|
||||
}
|
||||
|
||||
val items: ArrayList<Item> = ArrayList<Item>
|
||||
val items: ArrayList<Item> = ArrayList<Item>()
|
||||
|
||||
fun test(room : Object) {
|
||||
for(val item: Item in items) {
|
||||
|
||||
Reference in New Issue
Block a user