FIR: rename AMBIGUITY to OVERLOAD_RESOLUTION_AMBIGUITY to match FE 1.0

This commit is contained in:
Mikhail Glukhikh
2021-04-02 11:51:36 +03:00
parent 71397a06fb
commit f0ff9ad5a7
168 changed files with 504 additions and 1197 deletions
@@ -4,5 +4,5 @@ fun foo(g: () -> Int) {}
fun foo(f: (Int) -> Int) {}
fun test() {
<!AMBIGUITY!>foo<!> { -> 42 }
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!> { -> 42 }
}
@@ -55,5 +55,5 @@ fun test() {
withGenericDefaults("")
<!AMBIGUITY!>wrong<!>(null!!)
<!OVERLOAD_RESOLUTION_AMBIGUITY!>wrong<!>(null!!)
}
@@ -1,34 +0,0 @@
// !WITH_NEW_IFERENCE
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: packageA.kt
package a
abstract class Cls
abstract class Cls2
// FILE: packageB.kt
package b
fun Cls() {}
class Cls2
// FILE: test.kt
package c
import a.*
import b.*
fun take(arg: Any) {}
fun test() {
<!AMBIGUITY!>Cls<!>()
take(<!AMBIGUITY!>Cls<!>())
<!UNRESOLVED_REFERENCE!>Cls2<!>()
take(<!UNRESOLVED_REFERENCE!>Cls2<!>())
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !WITH_NEW_IFERENCE
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
+1 -1
View File
@@ -16,5 +16,5 @@ class C: A, B
fun main() {
AImpl().f()
BImpl().f()
C().<!AMBIGUITY!>f<!>()
C().<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!>()
}