Partially support call with errors

Cases with no candidates or with Ambiguity is not supported yet
This commit is contained in:
Stanislav Erokhin
2021-05-10 16:25:14 +02:00
parent 080a832605
commit 85d9e96632
3 changed files with 8 additions and 5 deletions
@@ -1,7 +1,6 @@
// IS_APPLICABLE: false
// ERROR: Cannot find a parameter with this name: c
// ERROR: 'operator' modifier is inapplicable on this function: must have a single value parameter
// IGNORE_FE10_BINDING_BY_FIR
fun test() {
class Test{
operator fun contains(a: Int=1, b: Int=2): Boolean = true
@@ -1,7 +1,6 @@
// IS_APPLICABLE: false
// ERROR: No value passed for parameter 'b'
// ERROR: 'operator' modifier is inapplicable on this function: must have a single value parameter
// IGNORE_FE10_BINDING_BY_FIR
fun test() {
class Test{
operator fun contains(a: Int, b: Int): Boolean = true