Refactor FakeCallResolver, make error reporting simpler

This commit is contained in:
Mikhail Zarechenskiy
2017-08-31 14:31:51 +03:00
parent ff1c5ad793
commit 17b4874c37
5 changed files with 90 additions and 42 deletions
@@ -10,7 +10,7 @@ class MyClass2 {}
<!CONFLICTING_OVERLOADS!>fun MyClass2.component1()<!> = 1.3
fun test(mc1: MyClass, mc2: MyClass2) {
val (a, b) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>mc1<!>
val (<!OPERATOR_MODIFIER_REQUIRED!>a<!>, b) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>mc1<!>
val (c) = <!COMPONENT_FUNCTION_AMBIGUITY!>mc2<!>
//a,b,c are error types