Fix operator warning on 'Constr()()'

This commit is contained in:
Yan Zhulanow
2015-09-29 18:44:53 +03:00
parent 7e4fbfaa6d
commit e6c0d4692a
12 changed files with 51 additions and 37 deletions
@@ -1,10 +1,10 @@
fun testInvoke() {
fun Nothing.invoke() = this
operator fun Nothing.invoke() = this
todo()<!UNREACHABLE_CODE!>()<!>
}
fun testInvokeWithLambda() {
fun Nothing.invoke(<!UNUSED_PARAMETER!>i<!>: Int, f: () -> Int) = f
operator fun Nothing.invoke(<!UNUSED_PARAMETER!>i<!>: Int, f: () -> Int) = f
todo()<!UNREACHABLE_CODE!>(1){ 42 }<!>
}