Report type mismatch for component functions

This commit is contained in:
Andrey Breslav
2012-08-17 21:13:28 +04:00
parent 306c27a9bb
commit ecd1c17e47
5 changed files with 43 additions and 4 deletions
@@ -0,0 +1,8 @@
class A {
fun component1() : Int = 1
fun component2() : Int = 2
}
fun a(<!UNUSED_PARAMETER!>aa<!> : A) {
val (a: String, b1: String) = <!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH, COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>aa<!>
}