Add a test on extension function to object

This commit is contained in:
Alexander Udalov
2013-11-11 17:42:35 +04:00
parent 8b5aa94484
commit 8c3f9149ac
2 changed files with 11 additions and 0 deletions
@@ -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");