function invocation with only type parameters prohibited

This commit is contained in:
Svetlana Isakova
2012-05-23 22:04:22 +04:00
parent 327b471eaf
commit 0fd882741b
22 changed files with 78 additions and 47 deletions
@@ -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>>>()
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -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) {