diagnostics for deprecated syntax of function type parameter list

This commit is contained in:
Dmitry Jemerov
2015-10-05 20:26:47 +02:00
parent c5d3673b6b
commit 7c20630272
156 changed files with 236 additions and 213 deletions
@@ -1,5 +1,5 @@
fun test1<T>() = null as T
fun test2<T>(): T {
fun <T> test1() = null as T
fun <T> test2(): T {
val a : Any? = null
return a as T
}
+1 -1
View File
@@ -5,7 +5,7 @@ class UpdateableThing {
private val lock = ReentrantReadWriteLock()
private var updateCount = 0
fun performUpdates<T>(block: () -> T): T {
fun <T> performUpdates(block: () -> T): T {
lock.write {
++updateCount
val result = block()