Add assertion for variable as function call with explicit type parameters.

This commit is contained in:
Stanislav Erokhin
2016-07-25 14:14:20 +03:00
parent b56e84d47f
commit f3be1b8f1f
6 changed files with 5 additions and 17 deletions
@@ -1,3 +1,4 @@
// IS_APPLICABLE: false
fun test() {
class Test {
operator fun <T> invoke(a: Int) {}
@@ -1,7 +0,0 @@
fun test() {
class Test {
operator fun <T> invoke(a: Int) {}
}
val test = Test()
test<Int>(0)
}
@@ -1,3 +1,4 @@
// IS_APPLICABLE: false
fun test() {
class Test {
operator fun <T> invoke(fn: () -> T) {}
@@ -1,7 +0,0 @@
fun test() {
class Test {
operator fun <T> invoke(fn: () -> T) {}
}
val test = Test()
test<Int> { 0 }
}