Add test for parameter hints on invoke()
This commit is contained in:
@@ -140,6 +140,17 @@ class X {
|
|||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun `test invoke`() {
|
||||||
|
check("""
|
||||||
|
fun main() {
|
||||||
|
val x = X()
|
||||||
|
x(<hint text="a:"/>10, x);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class X {
|
||||||
|
operator fun invoke(a: Int, bI: Int) {}
|
||||||
|
}
|
||||||
|
""")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user