[SAM with receiver] Add implementation for K2
This commit is contained in:
committed by
teamcity
parent
49c836e706
commit
65ac82ee46
@@ -1,6 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
// FILE: Sam.java
|
||||
// FILE: SamConstructor.kt
|
||||
public interface Sam {
|
||||
String run(String a, String b);
|
||||
}
|
||||
@@ -12,9 +10,9 @@ fun test() {
|
||||
""
|
||||
}
|
||||
|
||||
Sam <!TYPE_MISMATCH!>{ <!EXPECTED_PARAMETERS_NUMBER_MISMATCH!>b<!> ->
|
||||
val a = <!NO_THIS!>this@Sam<!>
|
||||
System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>)
|
||||
Sam <!ARGUMENT_TYPE_MISMATCH!>{ b ->
|
||||
val a = this<!UNRESOLVED_LABEL!>@Sam<!>
|
||||
System.out.<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(a)
|
||||
""
|
||||
}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user