Disallow references to extensions in classes
It's not clear in which order should the two receiver arguments be passed to them, and there's no corresponding K*FunctionN class for now #KT-1183 In Progress
This commit is contained in:
@@ -781,6 +781,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/callableReference/extensionFromTopLevel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionInClassDisallowed.kt")
|
||||
public void testExtensionInClassDisallowed() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/callableReference/extensionInClassDisallowed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericClassFromTopLevel.kt")
|
||||
public void testGenericClassFromTopLevel() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/callableReference/genericClassFromTopLevel.kt");
|
||||
|
||||
Reference in New Issue
Block a user