Add a test on extension function to object
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
object O
|
||||
|
||||
fun Any.foo() = 42
|
||||
val Any?.bar = 239
|
||||
|
||||
val x = O.foo() + O.bar
|
||||
@@ -2694,6 +2694,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/extensions/kt819ExtensionProperties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("object.kt")
|
||||
public void testObject() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/extensions/object.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwOutCandidatesByReceiver.kt")
|
||||
public void testThrowOutCandidatesByReceiver() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/extensions/throwOutCandidatesByReceiver.kt");
|
||||
|
||||
Reference in New Issue
Block a user