[FE] Add case with ambiguous generic call

This commit is contained in:
Anastasiya Shadrina
2021-06-28 18:36:16 +07:00
committed by TeamCityServer
parent a2403c470f
commit 2d743a2455
3 changed files with 7 additions and 0 deletions
@@ -10,6 +10,8 @@ interface C2 : Common {
fun Common.supertypeExtension() {}
fun <T : Common> T.supertypeExtensionGeneric() {}
context(Common)
fun supertypeContextual() {}
@@ -18,5 +20,6 @@ fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>supertypeMember<!>()
<!OVERLOAD_RESOLUTION_AMBIGUITY!>member<!>()
<!AMBIBIGUOS_CALL_WITH_IMPLICIT_CONTEXT_RECEIVER!>supertypeExtension()<!>
<!AMBIBIGUOS_CALL_WITH_IMPLICIT_CONTEXT_RECEIVER!>supertypeExtensionGeneric()<!>
<!MULTIPLE_ARGUMENTS_APPLICABLE_FOR_CONTEXT_RECEIVER!>supertypeContextual()<!>
}